Check that custom attributes are disallowed on statements and expressions
This commit is contained in:
parent
11b538840f
commit
8475a4b0c6
@ -8,7 +8,12 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![feature(stmt_expr_attributes)]
|
||||
|
||||
#[foo] //~ ERROR The attribute `foo`
|
||||
fn main() {
|
||||
|
||||
#[foo] //~ ERROR The attribute `foo`
|
||||
let x = ();
|
||||
#[foo] //~ ERROR The attribute `foo`
|
||||
x
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user