summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-unknown-lint.rs
blob: 2d842d5142097e0eb37596f0e86744e582c8ecc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![deny(unknown_lints)]

#![allow(not_a_real_lint)] //~ ERROR unknown lint

#![deny(dead_cod)] //~ ERROR unknown lint
                   //~| HELP did you mean
                   //~| SUGGESTION dead_code

#![deny(rust_2018_idiots)] //~ ERROR unknown lint
                           //~| HELP did you mean
                           //~| SUGGESTION rust_2018_idioms

fn main() {}