summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/suggest-import-without-clobbering-attrs.fixed
blob: fc68884fe9c6fec512852cda86f91ae2973a7aba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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
}