Skip to content

Commit

Permalink
add NOTE: to test notes
Browse files Browse the repository at this point in the history
  • Loading branch information
ExpHP committed Nov 14, 2017
1 parent 4d200f6 commit ead9ac3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/test/compile-fail/E0084.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
16 changes: 8 additions & 8 deletions src/test/compile-fail/E0517.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
8 changes: 4 additions & 4 deletions src/test/compile-fail/E0518.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit ead9ac3

Please sign in to comment.