]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-unknown-lint.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[rust.git] / src / test / ui / lint / lint-unknown-lint.rs
1 #![deny(unknown_lints)]
2
3 #![allow(not_a_real_lint)] //~ ERROR unknown lint
4
5 #![deny(dead_cod)] //~ ERROR unknown lint
6                    //~| HELP did you mean
7                    //~| SUGGESTION dead_code
8
9 #![deny(rust_2018_idiots)] //~ ERROR unknown lint
10                            //~| HELP did you mean
11                            //~| SUGGESTION rust_2018_idioms
12
13 fn main() {}