rust/tests/ui/resolve/suggestions/suggest-import-without-clobbering-attrs.rs
xizheyin 25ab022f29 move tests/ui/resolve/suggest* to tests/ui/resolve/suggestions/
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-07-03 23:11:57 +08:00

16 lines
222 B
Rust

//@ run-rustfix
//@ compile-flags: -Aunused
#[cfg(all())]
use y::Whatever;
mod y {
pub(crate) fn z() {}
pub(crate) struct Whatever;
}
fn main() {
z();
//~^ ERROR cannot find function `z` in this scope
}