Remove an unnecessary/incorrect match in the expression check function

This commit is contained in:
matthew 2018-03-26 19:41:19 -07:00
parent 816c1b191c
commit 48825bcb23
2 changed files with 11 additions and 15 deletions

View file

@ -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
}