Remove an unnecessary/incorrect match in the expression check function
This commit is contained in:
parent
816c1b191c
commit
48825bcb23
2 changed files with 11 additions and 15 deletions
|
|
@ -21,8 +21,7 @@ fn main() {
|
|||
|
||||
#[repr(nothing)]
|
||||
let _x = 0;
|
||||
//~^^ ERROR attribute should not be applied to statements
|
||||
|
||||
//~^^ ERROR attribute should not be applied a statement
|
||||
|
||||
#[repr(something_not_real)]
|
||||
loop {
|
||||
|
|
@ -32,5 +31,12 @@ fn main() {
|
|||
|
||||
#[repr]
|
||||
let _y = "123";
|
||||
//~^^ ERROR attribute should not be applied to statements
|
||||
//~^^ ERROR attribute should not be applied a statement
|
||||
|
||||
|
||||
fn foo() {}
|
||||
|
||||
#[inline(ABC)]
|
||||
foo();
|
||||
//~^^ ERROR attribute should be applied to function
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue