rustc/tests/ui/resolve/suggest-import-without-clobbering-attrs.fixed
2024-05-29 11:23:22 +02:00

17 lines
248 B
Plaintext

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