rust/tests/ui/resolve/suggest-import-without-clobbering-attrs.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
250 B
Rust
Raw Normal View History

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
}