2023-03-10 21:39:14 +00:00
|
|
|
pub mod inner {
|
|
|
|
#[cfg(FALSE)]
|
|
|
|
mod gone {
|
|
|
|
pub fn uwu() {}
|
|
|
|
}
|
|
|
|
|
2024-07-12 18:52:52 +00:00
|
|
|
#[cfg(FALSE)] //~ NOTE the item is gated here
|
2023-03-10 21:39:14 +00:00
|
|
|
pub use super::uwu;
|
|
|
|
//~^ NOTE found an item that was configured out
|
|
|
|
}
|
|
|
|
|
2023-06-20 18:20:55 +00:00
|
|
|
pub use a::x;
|
|
|
|
//~^ ERROR unresolved import `a::x`
|
|
|
|
//~| NOTE no `x` in `a`
|
|
|
|
|
|
|
|
mod a {
|
2024-07-12 18:52:52 +00:00
|
|
|
#[cfg(FALSE)] //~ NOTE the item is gated here
|
2023-06-20 18:20:55 +00:00
|
|
|
pub fn x() {}
|
|
|
|
//~^ NOTE found an item that was configured out
|
|
|
|
}
|
|
|
|
|
|
|
|
pub use b::{x, y};
|
|
|
|
//~^ ERROR unresolved imports `b::x`, `b::y`
|
|
|
|
//~| NOTE no `x` in `b`
|
|
|
|
//~| NOTE no `y` in `b`
|
|
|
|
|
|
|
|
mod b {
|
2024-07-12 18:52:52 +00:00
|
|
|
#[cfg(FALSE)] //~ NOTE the item is gated here
|
2023-06-20 18:20:55 +00:00
|
|
|
pub fn x() {}
|
|
|
|
//~^ NOTE found an item that was configured out
|
2024-07-12 18:52:52 +00:00
|
|
|
#[cfg(FALSE)] //~ NOTE the item is gated here
|
2023-06-20 18:20:55 +00:00
|
|
|
pub fn y() {}
|
|
|
|
//~^ NOTE found an item that was configured out
|
|
|
|
}
|
|
|
|
|
2023-03-10 21:39:14 +00:00
|
|
|
fn main() {
|
|
|
|
// There is no uwu at this path - no diagnostic.
|
|
|
|
inner::uwu(); //~ ERROR cannot find function
|
|
|
|
//~^ NOTE not found in `inner`
|
|
|
|
}
|