2023-09-07 00:11:41 -05:00
|
|
|
// run-rustfix
|
|
|
|
// compile-flags: --cfg=whatever -Aunused
|
|
|
|
|
|
|
|
use y::z;
|
2023-09-07 00:13:52 -05:00
|
|
|
#[cfg(whatever)]
|
2023-09-07 00:11:41 -05:00
|
|
|
use y::Whatever;
|
|
|
|
|
|
|
|
mod y {
|
|
|
|
pub(crate) fn z() {}
|
|
|
|
pub(crate) struct Whatever;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
z();
|
|
|
|
//~^ ERROR cannot find function `z` in this scope
|
|
|
|
}
|