Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
resolve
/
suggest-import-without-clobbering-attrs.fixed
blob: 607c9af49271302b3f0de02303b9024fadcf60b6 [
file
] [
log
] [
blame
] [
edit
]
//@ 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
}