summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/hidden_glob_reexports.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/hidden_glob_reexports.stderr')
-rw-r--r--tests/ui/resolve/hidden_glob_reexports.stderr54
1 files changed, 54 insertions, 0 deletions
diff --git a/tests/ui/resolve/hidden_glob_reexports.stderr b/tests/ui/resolve/hidden_glob_reexports.stderr
new file mode 100644
index 000000000..11fa94d6f
--- /dev/null
+++ b/tests/ui/resolve/hidden_glob_reexports.stderr
@@ -0,0 +1,54 @@
+warning: private item shadows public glob re-export
+ --> $DIR/hidden_glob_reexports.rs:9:5
+ |
+LL | struct Foo;
+ | ^^^^^^^^^^^
+ |
+note: the name `Foo` in the type namespace is supposed to be publicly re-exported here
+ --> $DIR/hidden_glob_reexports.rs:12:13
+ |
+LL | pub use self::inner::*;
+ | ^^^^^^^^^^^^^^
+note: but the private item here shadows it
+ --> $DIR/hidden_glob_reexports.rs:9:5
+ |
+LL | struct Foo;
+ | ^^^^^^^^^^^
+ = note: `#[warn(hidden_glob_reexports)]` on by default
+
+warning: private item shadows public glob re-export
+ --> $DIR/hidden_glob_reexports.rs:27:9
+ |
+LL | use self::other::Foo;
+ | ^^^^^^^^^^^^^^^^
+ |
+note: the name `Foo` in the type namespace is supposed to be publicly re-exported here
+ --> $DIR/hidden_glob_reexports.rs:25:13
+ |
+LL | pub use self::inner::*;
+ | ^^^^^^^^^^^^^^
+note: but the private item here shadows it
+ --> $DIR/hidden_glob_reexports.rs:27:9
+ |
+LL | use self::other::Foo;
+ | ^^^^^^^^^^^^^^^^
+
+warning: private item shadows public glob re-export
+ --> $DIR/hidden_glob_reexports.rs:40:9
+ |
+LL | use std::primitive::u8;
+ | ^^^^^^^^^^^^^^^^^^
+ |
+note: the name `u8` in the type namespace is supposed to be publicly re-exported here
+ --> $DIR/hidden_glob_reexports.rs:38:13
+ |
+LL | pub use self::no_def_id::*;
+ | ^^^^^^^^^^^^^^^^^^
+note: but the private item here shadows it
+ --> $DIR/hidden_glob_reexports.rs:40:9
+ |
+LL | use std::primitive::u8;
+ | ^^^^^^^^^^^^^^^^^^
+
+warning: 3 warnings emitted
+