We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
&dyn
This compiles but creates a false positive expected &dyn Debug, found &i32
expected &dyn Debug, found &i32
fn main() { let x: &dyn std::fmt::Debug = &0; }
Interestingly, &str does not trigger the same behavior. I tried to dig deeper but wasn't able to find anything useful in the source.
&str
rust-analyzer version: rust-analyzer version: 0.4.1633-standalone
rustc version: rustc 1.71.0 (8ede3aae2 2023-07-12)
The text was updated successfully, but these errors were encountered:
This looks similar to the error in the second checkbox in this comment but the repro it links to is working.
Sorry, something went wrong.
#11847
Sorry, didn't find that. Closing as duplicate.
No branches or pull requests
This compiles but creates a false positive
expected &dyn Debug, found &i32
Interestingly,
&str
does not trigger the same behavior. I tried to dig deeper but wasn't able to find anything useful in the source.rust-analyzer version: rust-analyzer version: 0.4.1633-standalone
rustc version: rustc 1.71.0 (8ede3aae2 2023-07-12)
The text was updated successfully, but these errors were encountered: