]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-21546.rs
Imported Upstream version 1.6.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-21546.rs
index bb1bcd4e8717d6c2e921fa3df89a6df7c7b2ab64..535630e0824ca571725c9c766d59e4983a817b7e 100644 (file)
@@ -16,7 +16,7 @@ mod Foo { }
 
 #[allow(dead_code)]
 struct Foo;
-//~^ WARNING duplicate definition of type or module `Foo`
+//~^ ERROR duplicate definition of type or module `Foo`
 
 
 #[allow(non_snake_case)]
@@ -25,7 +25,7 @@ mod Bar { }
 
 #[allow(dead_code)]
 struct Bar(i32);
-//~^ WARNING duplicate definition of type or module `Bar`
+//~^ ERROR duplicate definition of type or module `Bar`
 
 
 #[allow(dead_code)]
@@ -34,7 +34,7 @@ struct Baz(i32);
 
 #[allow(non_snake_case)]
 mod Baz { }
-//~^ WARNING duplicate definition of type or module `Baz`
+//~^ ERROR duplicate definition of type or module `Baz`
 
 
 #[allow(dead_code)]
@@ -43,7 +43,7 @@ struct Qux { x: bool }
 
 #[allow(non_snake_case)]
 mod Qux { }
-//~^ WARNING duplicate definition of type or module `Qux`
+//~^ ERROR duplicate definition of type or module `Qux`
 
 
 #[allow(dead_code)]
@@ -52,7 +52,7 @@ struct Quux;
 
 #[allow(non_snake_case)]
 mod Quux { }
-//~^ WARNING duplicate definition of type or module `Quux`
+//~^ ERROR duplicate definition of type or module `Quux`
 
 
 #[allow(dead_code)]