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
With the following code:
fn test(x: Box<dyn Display>) {} fn example() { test(Box::new(5)) }
rust-analyzer complains expected Box<dyn Display, Global>, found Box<i32, Global>, even though this code is valid.
expected Box<dyn Display, Global>, found Box<i32, Global>
rust-analyzer version: 2022-03-25 dev
rustc version: not applicable
relevant settings: (eg. client settings, or environment variables like CARGO, RUSTUP_HOME or CARGO_HOME)
CARGO
RUSTUP_HOME
CARGO_HOME
Experimental diagnostics enabled
The text was updated successfully, but these errors were encountered:
This is a duplicate. Sorry, closing this issue.
Sorry, something went wrong.
for completeness: #11818
No branches or pull requests
With the following code:
rust-analyzer complains
expected Box<dyn Display, Global>, found Box<i32, Global>
, even though this code is valid.rust-analyzer version: 2022-03-25 dev
rustc version: not applicable
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTUP_HOME
orCARGO_HOME
)Experimental diagnostics enabled
The text was updated successfully, but these errors were encountered: