summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/attribute-typos.rs
blob: 7c8231bbb24f80e8359fe11364e2ade19c44be91 (plain)
1
2
3
4
5
6
7
8
9
10
11
#[deprcated] //~ ERROR cannot find attribute `deprcated` in this scope
fn foo() {}

#[tests] //~ ERROR cannot find attribute `tests` in this scope
fn bar() {}

#[rustc_err]
//~^ ERROR cannot find attribute `rustc_err` in this scope
//~| ERROR attributes starting with `rustc` are reserved for use by the `rustc` compiler

fn main() {}