rust/tests/ui/resolve/suggest-import-without-clobbering-attrs.rs

16 lines
240 B
Rust
Raw Normal View History

//@ run-rustfix
//@ compile-flags: --cfg=whatever -Aunused
2023-09-07 00:11:41 -05:00
#[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
}