rust/tests/ui/resolve/suggest-import-without-clobbering-attrs.rs
2023-09-07 05:18:54 +00:00

16 lines
238 B
Rust

// run-rustfix
// compile-flags: --cfg=whatever -Aunused
#[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
}