16 lines
222 B
Rust
16 lines
222 B
Rust
//@ run-rustfix
|
|
//@ compile-flags: -Aunused
|
|
|
|
#[cfg(all())]
|
|
use y::Whatever;
|
|
|
|
mod y {
|
|
pub(crate) fn z() {}
|
|
pub(crate) struct Whatever;
|
|
}
|
|
|
|
fn main() {
|
|
z();
|
|
//~^ ERROR cannot find function `z` in this scope
|
|
}
|