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
rust-analyzer version: (eg. output of "Rust Analyzer: Show RA Version" command) v0.2.956
rustc version: (eg. output of rustc -V) rustc 1.59.0 (9d1b2106e 2022-02-23)
rustc -V
relevant settings: (eg. client settings, or environment variables like CARGO, RUSTUP_HOME or CARGO_HOME) Using VS Code
CARGO
RUSTUP_HOME
CARGO_HOME
The following project causes an "unresolved import" on the first line of main.rs:
main.rs
Cargo.toml ========== [package] name = "scratch" version = "0.1.0" edition = "2021" [dependencies] derivative = "2.2.0" main.rs ======= use derivative::Derivative; #[derive(Derivative)] #[derivative(Debug)] struct Test; fn main() { let value = Test; println!("{value:?}"); }
It compiles and runs fine.
The text was updated successfully, but these errors were encountered:
Duplicate of #7459. You can try setting rust-analyzer.cargo.unsetTest.
rust-analyzer.cargo.unsetTest
Sorry, something went wrong.
Setting unsetTest, as recommended in #7459, solved this. Thanks.
No branches or pull requests
rust-analyzer version: (eg. output of "Rust Analyzer: Show RA Version" command)
v0.2.956
rustc version: (eg. output of
rustc -V
)rustc 1.59.0 (9d1b2106e 2022-02-23)
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTUP_HOME
orCARGO_HOME
)Using VS Code
The following project causes an "unresolved import" on the first line of
main.rs
:It compiles and runs fine.
The text was updated successfully, but these errors were encountered: