summaryrefslogtreecommitdiffstats
path: root/src/test/ui/double-type-import.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/double-type-import.stderr')
-rw-r--r--src/test/ui/double-type-import.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/double-type-import.stderr b/src/test/ui/double-type-import.stderr
new file mode 100644
index 000000000..a2f30d82e
--- /dev/null
+++ b/src/test/ui/double-type-import.stderr
@@ -0,0 +1,13 @@
+error[E0252]: the name `X` is defined multiple times
+ --> $DIR/double-type-import.rs:3:9
+ |
+LL | pub use self::bar::X;
+ | ------------ previous import of the type `X` here
+LL | use self::bar::X;
+ | ^^^^^^^^^^^^ `X` reimported here
+ |
+ = note: `X` must be defined only once in the type namespace of this module
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0252`.