mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
16 lines
240 B
Rust
16 lines
240 B
Rust
//@ run-rustfix
|
|
//@ compile-flags: --cfg=whatever -Aunused
|
|
|
|
#[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
|
|
}
|