summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0428.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0428.stderr')
-rw-r--r--tests/ui/error-codes/E0428.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0428.stderr b/tests/ui/error-codes/E0428.stderr
new file mode 100644
index 000000000..205bcf342
--- /dev/null
+++ b/tests/ui/error-codes/E0428.stderr
@@ -0,0 +1,13 @@
+error[E0428]: the name `Bar` is defined multiple times
+ --> $DIR/E0428.rs:2:1
+ |
+LL | struct Bar;
+ | ----------- previous definition of the type `Bar` here
+LL | struct Bar;
+ | ^^^^^^^^^^^ `Bar` redefined here
+ |
+ = note: `Bar` 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 E0428`.