]> git.lizzy.rs Git - rust.git/blob - src/test/ui/custom_attribute.rs
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / custom_attribute.rs
1 #![feature(stmt_expr_attributes)]
2
3 #[foo] //~ ERROR cannot find attribute `foo` in this scope
4 fn main() {
5     #[foo] //~ ERROR cannot find attribute `foo` in this scope
6     let x = ();
7     #[foo] //~ ERROR cannot find attribute `foo` in this scope
8     x
9 }