rust/src/test/ui/suggestions/attribute-typos.rs

12 lines
353 B
Rust
Raw Normal View History

#[deprcated] //~ ERROR cannot find attribute macro `deprcated` in this scope
fn foo() {}
#[tests] //~ ERROR cannot find attribute macro `tests` in this scope
fn bar() {}
2019-06-30 05:00:45 -05:00
#[rustc_err]
//~^ ERROR cannot find attribute macro `rustc_err` in this scope
2019-06-30 05:00:45 -05:00
//~| ERROR attributes starting with `rustc` are reserved for use by the `rustc` compiler
fn main() {}