-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run doctest does not work in impl trait blocks #4449
Labels
Comments
cc @bnjjj |
Ok will fix it this weekend. @fehrnah can you provide a minimal example to help me reproduce ? |
In fact, any documented function that is not a module-level function can't work. The fix seems straight-forward but I believe that there are some tricky cases like generics and impls of the same trait for different structs in the same module. |
bnjjj
added a commit
to bnjjj/rust-analyzer
that referenced
this issue
May 16, 2020
Signed-off-by: Benjamin Coenen <[email protected]>
bnjjj
added a commit
to bnjjj/rust-analyzer
that referenced
this issue
May 17, 2020
Signed-off-by: Benjamin Coenen <[email protected]>
bnjjj
added a commit
to bnjjj/rust-analyzer
that referenced
this issue
May 17, 2020
Signed-off-by: Benjamin Coenen <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On VScode, the Run doctest does not work if the doctest is in a trait impl block.
Cargo test is called on
Struct::function
instead ofStruct::Trait::function
The text was updated successfully, but these errors were encountered: