rust/src/test/ui/custom_attribute.rs
2018-12-25 21:08:33 -07:00

10 lines
190 B
Rust

#![feature(stmt_expr_attributes)]
#[foo] //~ ERROR The attribute `foo`
fn main() {
#[foo] //~ ERROR The attribute `foo`
let x = ();
#[foo] //~ ERROR The attribute `foo`
x
}