]> git.lizzy.rs Git - rust.git/blob - tests/ui/custom_attribute.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / 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 }