rust/tests/ui/suggestions/attribute-typos.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
335 B
Rust
Raw Normal View History

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