diff options
Diffstat (limited to 'tests/ui/resolve/suggest-import-without-clobbering-attrs.fixed')
-rw-r--r-- | tests/ui/resolve/suggest-import-without-clobbering-attrs.fixed | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/resolve/suggest-import-without-clobbering-attrs.fixed b/tests/ui/resolve/suggest-import-without-clobbering-attrs.fixed new file mode 100644 index 000000000..fc68884fe --- /dev/null +++ b/tests/ui/resolve/suggest-import-without-clobbering-attrs.fixed @@ -0,0 +1,16 @@ +// run-rustfix +// compile-flags: --cfg=whatever -Aunused + +use y::z; +#[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 +} |