summary refs log tree commit diff
path: root/src/test/ui/suggestions/attribute-typos.rs
blob: 13c6308b97e85d4e2e021f965a9c4eabd5064086 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#[deprcated]    //~ ERROR E0658
fn foo() {}     //~| HELP a built-in attribute with a similar name exists
                //~| SUGGESTION deprecated
                //~| HELP add #![feature(custom_attribute)] to the crate attributes to enable

#[tests]        //~ ERROR E0658
fn bar() {}     //~| HELP a built-in attribute with a similar name exists
                //~| SUGGESTION test
                //~| HELP add #![feature(custom_attribute)] to the crate attributes to enable

#[rustc_err]    //~ ERROR E0658
fn main() {}    //~| HELP add #![feature(rustc_attrs)] to the crate attributes to enable
                // don't suggest rustc attributes