]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/macros/attr-empty-expr.rs
1 // AST-based macro attributes expanding to an empty expression produce an error and not ICE.
3 #![feature(custom_test_frameworks)]
4 #![feature(stmt_expr_attributes)]
8 let _
= #[test] 0; //~ ERROR removing an expression is not supported in this position
9 let _
= #[bench] 1; //~ ERROR removing an expression is not supported in this position
10 let _
= #[test_case] 2; //~ ERROR removing an expression is not supported in this position