about summary refs log tree commit diff
path: root/src/test/ui/enum-and-module-in-same-scope.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/enum-and-module-in-same-scope.stderr')
-rw-r--r--src/test/ui/enum-and-module-in-same-scope.stderr10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/test/ui/enum-and-module-in-same-scope.stderr b/src/test/ui/enum-and-module-in-same-scope.stderr
index 6f3a2c89d19..723e13f4109 100644
--- a/src/test/ui/enum-and-module-in-same-scope.stderr
+++ b/src/test/ui/enum-and-module-in-same-scope.stderr
@@ -1,17 +1,15 @@
 error[E0428]: the name `Foo` is defined multiple times
   --> $DIR/enum-and-module-in-same-scope.rs:15:1
    |
-11 | / enum Foo { //~ NOTE previous definition of the type `Foo` here
+11 | / enum Foo {
 12 | |     X
 13 | | }
    | |_- previous definition of the type `Foo` here
 14 | 
 15 | / mod Foo { //~ ERROR the name `Foo` is defined multiple times
-16 | |           //~| NOTE `Foo` redefined here
-17 | |           //~| NOTE `Foo` must be defined only once in the type namespace of this module
-18 | |     pub static X: isize = 42;
-19 | |     fn f() { f() } // Check that this does not result in a resolution error
-20 | | }
+16 | |     pub static X: isize = 42;
+17 | |     fn f() { f() } // Check that this does not result in a resolution error
+18 | | }
    | |_^ `Foo` redefined here
    |
    = note: `Foo` must be defined only once in the type namespace of this module