You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// check-pass// tests/ui/imports/import-after-macro-expand-11.rs#[derive(Debug)]structH;mod p {usesuper::*;// this struct confuses RA#[derive(Clone)]structH;mod t {usesuper::*;fnf(){let h:crate::p::H = H;}}}fnmain(){}
edition 2015
while this compiles with rustc, rust analyze throws an error:
warning: unused import: `super::*`
--> src/main.rs:8:9
|
8 | use super::*;
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused variable: `h`
--> src/main.rs:18:16
|
18 | let h: crate::p::H = H;
| ^ help: if this is intentional, prefix it with an underscore: `_h`
|
= note: `#[warn(unused_variables)]` on by default
warning: function `f` is never used
--> src/main.rs:17:12
|
17 | fn f() {
| ^
|
= note: `#[warn(dead_code)]` on by default
warning: `bar` (bin "bar") generated 3 warnings (run `cargo fix --bin "bar"` to apply 2 suggestions)
edition 2015
while this compiles with rustc, rust analyze throws an error:
rust-analyzer 1.77.0-nightly (595bc6f 2024-01-05)
The text was updated successfully, but these errors were encountered: