]> git.lizzy.rs Git - rust.git/commitdiff
add NOTE: to test notes
authorMichael Lamparski <diagonaldevice@gmail.com>
Tue, 14 Nov 2017 22:45:18 +0000 (17:45 -0500)
committerMichael Lamparski <diagonaldevice@gmail.com>
Tue, 14 Nov 2017 22:45:18 +0000 (17:45 -0500)
src/test/compile-fail/E0084.rs
src/test/compile-fail/E0517.rs
src/test/compile-fail/E0518.rs

index 8d0cf20008cf8905c3f6326154e0ab731d0740c6..d19eed7124e82b798ebe170723a853a651921e88 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[repr(i32)] //~ ERROR E0084
-enum Foo {} //~ zero-variant enum
+#[repr(i32)] //~ ERROR: E0084
+enum Foo {} //~ NOTE: zero-variant enum
 
 fn main() {
 }
index 0de2ec12fa3ca53048df07b7637c7ef42ab6b5f2..7feda670f52a3aa85f111b501b6a9cebb671c9c9 100644 (file)
@@ -8,17 +8,17 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[repr(C)] //~ ERROR E0517
-type Foo = u8; //~ not a struct, enum or union
+#[repr(C)] //~ ERROR: E0517
+type Foo = u8; //~ NOTE: not a struct, enum or union
 
-#[repr(packed)] //~ ERROR E0517
-enum Foo2 {Bar, Baz} //~ not a struct
+#[repr(packed)] //~ ERROR: E0517
+enum Foo2 {Bar, Baz} //~ NOTE: not a struct
 
-#[repr(u8)] //~ ERROR E0517
-struct Foo3 {bar: bool, baz: bool} //~ not an enum
+#[repr(u8)] //~ ERROR: E0517
+struct Foo3 {bar: bool, baz: bool} //~ NOTE: not an enum
 
-#[repr(C)] //~ ERROR E0517
-impl Foo3 { //~ not a struct, enum or union
+#[repr(C)] //~ ERROR: E0517
+impl Foo3 { //~ NOTE: not a struct, enum or union
 }
 
 fn main() {
index 8de32bd3b771e5af44fce81c7b7ead51a06a4c0a..63d40db0049da736155c9ee6d85d58b41234d6e5 100644 (file)
@@ -8,11 +8,11 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[inline(always)] //~ ERROR E0518
-struct Foo;       //~ not a function
+#[inline(always)] //~ ERROR: E0518
+struct Foo;       //~ NOTE: not a function
 
-#[inline(never)] //~ ERROR E0518
-impl Foo {       //~ not a function
+#[inline(never)] //~ ERROR: E0518
+impl Foo {       //~ NOTE: not a function
 }
 
 fn main() {