]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/not_found.rs
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / not_found.rs
1 // check-pass
2
3 // this tests the `unknown_lint` lint, especially the suggestions
4
5 // the suggestion only appears if a lint with the lowercase name exists
6 #[allow(FOO_BAR)]
7 //~^ WARNING unknown lint
8
9 // the suggestion appears on all-uppercase names
10 #[warn(DEAD_CODE)]
11 //~^ WARNING unknown lint
12 //~| HELP did you mean
13
14 // the suggestion appears also on mixed-case names
15 #[deny(Warnings)]
16 //~^ WARNING unknown lint
17 //~| HELP did you mean
18
19 fn main() {
20     unimplemented!();
21 }