summaryrefslogtreecommitdiffstats
path: root/src/test/ui/underscore-imports/auxiliary/underscore-imports.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/underscore-imports/auxiliary/underscore-imports.rs')
-rw-r--r--src/test/ui/underscore-imports/auxiliary/underscore-imports.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/ui/underscore-imports/auxiliary/underscore-imports.rs b/src/test/ui/underscore-imports/auxiliary/underscore-imports.rs
new file mode 100644
index 000000000..c335336be
--- /dev/null
+++ b/src/test/ui/underscore-imports/auxiliary/underscore-imports.rs
@@ -0,0 +1,20 @@
+#[macro_export]
+macro_rules! do_nothing {
+ () => ()
+}
+
+mod m1 {
+ pub trait InScope1 {
+ fn in_scope1(&self) {}
+ }
+ impl InScope1 for () {}
+}
+mod m2 {
+ pub trait InScope2 {
+ fn in_scope2(&self) {}
+ }
+ impl InScope2 for () {}
+}
+
+pub use m1::InScope1 as _;
+pub use m2::InScope2 as _;