blob: 0c60f48c5142d7753d55f6b3deef66a4e62e8862 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Checks that rustc correctly errors when passed an invalid lint with
// `--force-warn`. This is a regression test for issue #86958.
//@ check-pass
//@ compile-flags: --force-warn foo-qux
//@ dont-require-annotations: NOTE
fn main() {}
//~? WARN unknown lint: `foo_qux`
//~? WARN unknown lint: `foo_qux`
//~? WARN unknown lint: `foo_qux`
//~? NOTE requested on the command line with `--force-warn foo_qux`
//~? NOTE `#[warn(unknown_lints)]` on by default
|