mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-21 04:03:11 +00:00
add NOTE: to test notes
This commit is contained in:
parent
4d200f6954
commit
ead9ac3b51
@ -8,8 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#[repr(i32)] //~ ERROR E0084
|
#[repr(i32)] //~ ERROR: E0084
|
||||||
enum Foo {} //~ zero-variant enum
|
enum Foo {} //~ NOTE: zero-variant enum
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
}
|
}
|
||||||
|
@ -8,17 +8,17 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#[repr(C)] //~ ERROR E0517
|
#[repr(C)] //~ ERROR: E0517
|
||||||
type Foo = u8; //~ not a struct, enum or union
|
type Foo = u8; //~ NOTE: not a struct, enum or union
|
||||||
|
|
||||||
#[repr(packed)] //~ ERROR E0517
|
#[repr(packed)] //~ ERROR: E0517
|
||||||
enum Foo2 {Bar, Baz} //~ not a struct
|
enum Foo2 {Bar, Baz} //~ NOTE: not a struct
|
||||||
|
|
||||||
#[repr(u8)] //~ ERROR E0517
|
#[repr(u8)] //~ ERROR: E0517
|
||||||
struct Foo3 {bar: bool, baz: bool} //~ not an enum
|
struct Foo3 {bar: bool, baz: bool} //~ NOTE: not an enum
|
||||||
|
|
||||||
#[repr(C)] //~ ERROR E0517
|
#[repr(C)] //~ ERROR: E0517
|
||||||
impl Foo3 { //~ not a struct, enum or union
|
impl Foo3 { //~ NOTE: not a struct, enum or union
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -8,11 +8,11 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#[inline(always)] //~ ERROR E0518
|
#[inline(always)] //~ ERROR: E0518
|
||||||
struct Foo; //~ not a function
|
struct Foo; //~ NOTE: not a function
|
||||||
|
|
||||||
#[inline(never)] //~ ERROR E0518
|
#[inline(never)] //~ ERROR: E0518
|
||||||
impl Foo { //~ not a function
|
impl Foo { //~ NOTE: not a function
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user