summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/issue-24883.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/issue-24883.rs')
-rw-r--r--tests/ui/imports/issue-24883.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/imports/issue-24883.rs b/tests/ui/imports/issue-24883.rs
new file mode 100644
index 000000000..819a20ddb
--- /dev/null
+++ b/tests/ui/imports/issue-24883.rs
@@ -0,0 +1,17 @@
+// check-pass
+
+mod a {
+ pub mod b { pub struct Foo; }
+
+ pub mod c {
+ use super::b;
+ pub struct Bar(pub b::Foo);
+ }
+
+ pub use self::c::*;
+}
+
+fn main() {
+ let _ = a::c::Bar(a::b::Foo);
+ let _ = a::Bar(a::b::Foo);
+}