rustc/tests/ui/resolve/suggest-import-without-clobbering-attrs.fixed
2024-07-31 08:40:13 +02:00

17 lines
232 B
Plaintext

//@ run-rustfix
//@ compile-flags: -Aunused
use y::z;
#[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
}