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
232 B
Rust
Raw Normal View History

2023-09-07 00:11:41 -05:00
//@ run-rustfix
//@ compile-flags: -Aunused
2023-09-07 00:11:41 -05:00
use y::z;
#[cfg(all())]
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
}