Skip to content

Question about error in CheckTraits #4

Answered by soareschen
marvin-hansen asked this question in Q&A
Discussion options

You must be logged in to vote

From your linked code, it looks like you have two separate Person contexts defined in dep_check.rs and dep_error.rs. It might be an issue that the Person type you are checking is different from the Person type that cause the error.

Sometimes it is useful to Ctrl+click the type in Rust Analyzer, and check that you are importing the correct type.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by marvin-hansen
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants