1 //! Attributes producing expressions in invalid locations
3 // aux-build:attr-stmt-expr.rs
5 #![feature(proc_macro_hygiene)]
6 #![feature(stmt_expr_attributes)]
8 extern crate attr_stmt_expr;
9 use attr_stmt_expr::{duplicate, no_output};
12 let _ = #[no_output] "Hello, world!";
13 //~^ ERROR expected expression, found end of macro arguments
15 let _ = #[duplicate] "Hello, world!";
16 //~^ ERROR macro expansion ignores token `,` and any following
25 //~^ ERROR macro expansion ignores token `,` and any following