rust/src/test/ui/lint/cli-unknown-force-warn.rs

8 lines
252 B
Rust
Raw Normal View History

// Checks that rustc correctly errors when passed an invalid lint with
2021-07-21 13:40:52 +00:00
// `--force-warn`. This is a regression test for issue #86958.
//
2021-07-21 13:40:52 +00:00
// compile-flags: -Z unstable-options --force-warn foo-qux
// error-pattern: unknown lint: `foo_qux`
fn main() {}