summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/issue-99695.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/issue-99695.rs')
-rw-r--r--tests/ui/imports/issue-99695.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/imports/issue-99695.rs b/tests/ui/imports/issue-99695.rs
new file mode 100644
index 000000000..f7199f149
--- /dev/null
+++ b/tests/ui/imports/issue-99695.rs
@@ -0,0 +1,16 @@
+// run-rustfix
+#![allow(unused, nonstandard_style)]
+mod m {
+ #[macro_export]
+ macro_rules! nu {
+ {} => {};
+ }
+
+ pub struct other_item;
+
+ pub use self::{nu, other_item as _};
+ //~^ ERROR unresolved import `self::nu` [E0432]
+ //~| HELP a macro with this name exists at the root of the crate
+}
+
+fn main() {}