summary refs log tree commit diff
path: root/src/test/ui/suggestions/attribute-typos.rs
blob: e1e3317093a3191f9de7a12e898edb31693f7618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// FIXME: missing sysroot spans (#53081)
// ignore-i586-unknown-linux-gnu
// ignore-i586-unknown-linux-musl
// ignore-i686-unknown-linux-musl
#[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() {}