Open misaka10987 opened 5 months ago
Also, there is a notice says "consider importing this function through its public re-export: use crate::my_add;
" in the "Quick fix" option, but it will suggest you import crate_a::add
instead of crate::my_add
when clicked.
That's a rustc message, does cargo check
actually work?
That's a rustc message, does
cargo check
actually work?
Yes an error[E0425]: cannot find function my_add
in this scope is produced as expected
rust-analyzer version: v0.3.1916
rustc version: 1.76.0
editor or extension: VSCodium
relevant settings: None
code snippet to reproduce:
crate-a/lib.rs
crate-b/lib.rs
crate-b/some.rs