about summary refs log tree commit diff
path: root/tests/ui/lint/lint-unknown-lint-cmdline.rs
blob: 7eb8c1f73142f8d4237e42739a1063d02c434abb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ check-pass
//@ compile-flags:-D bogus -D dead_cod
//@ dont-require-annotations: HELP
//@ dont-require-annotations: NOTE

fn main() { }

//~? WARN unknown lint: `bogus`
//~? WARN unknown lint: `dead_cod`
//~? WARN unknown lint: `bogus`
//~? WARN unknown lint: `dead_cod`
//~? WARN unknown lint: `bogus`
//~? WARN unknown lint: `dead_cod`
//~? NOTE requested on the command line with `-D bogus`
//~? NOTE `#[warn(unknown_lints)]` on by default
//~? NOTE requested on the command line with `-D dead_cod`
//~? HELP did you mean: `dead_code`