summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/lint-unknown-lint-cmdline.rs
blob: 81539cb6dc15a471a14dff203578a8e7d143d55c (plain)
1
2
3
4
5
6
7
8
9
10
11
// check-pass
// compile-flags:-D bogus -D dead_cod

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

fn main() { }