mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
17 lines
232 B
Rust
17 lines
232 B
Rust
//@ run-rustfix
|
|
//@ compile-flags: -Aunused
|
|
|
|
use y::z;
|
|
#[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
|
|
}
|