mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-29 15:48:52 +00:00
12 lines
316 B
Rust
12 lines
316 B
Rust
//! Checks error handling for undefined custom attributes.
|
|
|
|
#![feature(stmt_expr_attributes)]
|
|
|
|
#[foo] //~ ERROR cannot find attribute `foo` in this scope
|
|
fn main() {
|
|
#[foo] //~ ERROR cannot find attribute `foo` in this scope
|
|
let x = ();
|
|
#[foo] //~ ERROR cannot find attribute `foo` in this scope
|
|
x
|
|
}
|