Skip to content

Commit ead9ac3

Browse files
committed
add NOTE: to test notes
1 parent 4d200f6 commit ead9ac3

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/test/compile-fail/E0084.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[repr(i32)] //~ ERROR E0084
12-
enum Foo {} //~ zero-variant enum
11+
#[repr(i32)] //~ ERROR: E0084
12+
enum Foo {} //~ NOTE: zero-variant enum
1313

1414
fn main() {
1515
}

src/test/compile-fail/E0517.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[repr(C)] //~ ERROR E0517
12-
type Foo = u8; //~ not a struct, enum or union
11+
#[repr(C)] //~ ERROR: E0517
12+
type Foo = u8; //~ NOTE: not a struct, enum or union
1313

14-
#[repr(packed)] //~ ERROR E0517
15-
enum Foo2 {Bar, Baz} //~ not a struct
14+
#[repr(packed)] //~ ERROR: E0517
15+
enum Foo2 {Bar, Baz} //~ NOTE: not a struct
1616

17-
#[repr(u8)] //~ ERROR E0517
18-
struct Foo3 {bar: bool, baz: bool} //~ not an enum
17+
#[repr(u8)] //~ ERROR: E0517
18+
struct Foo3 {bar: bool, baz: bool} //~ NOTE: not an enum
1919

20-
#[repr(C)] //~ ERROR E0517
21-
impl Foo3 { //~ not a struct, enum or union
20+
#[repr(C)] //~ ERROR: E0517
21+
impl Foo3 { //~ NOTE: not a struct, enum or union
2222
}
2323

2424
fn main() {

src/test/compile-fail/E0518.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[inline(always)] //~ ERROR E0518
12-
struct Foo; //~ not a function
11+
#[inline(always)] //~ ERROR: E0518
12+
struct Foo; //~ NOTE: not a function
1313

14-
#[inline(never)] //~ ERROR E0518
15-
impl Foo { //~ not a function
14+
#[inline(never)] //~ ERROR: E0518
15+
impl Foo { //~ NOTE: not a function
1616
}
1717

1818
fn main() {

0 commit comments

Comments
 (0)