fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2// compile-flags: --cfg=whatever -Aunused 3 4use y::z; 5#[cfg(whatever)] 6use y::Whatever; 7 8mod y { 9 pub(crate) fn z() {} 10 pub(crate) struct Whatever; 11} 12 13fn main() { 14 z(); 15 //~^ ERROR cannot find function `z` in this scope 16}