Skip to content

Commit

Permalink
Check that custom attributes are disallowed on statements and express…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
jseyfried committed Jun 10, 2016
1 parent 11b5388 commit 8475a4b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test/compile-fail/custom_attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 8475a4b

Please sign in to comment.