2021-07-08 21:35:26 -07:00
|
|
|
// Checks that rustc correctly errors when passed an invalid lint with
|
2021-07-21 15:40:52 +02:00
|
|
|
// `--force-warn`. This is a regression test for issue #86958.
|
2023-08-28 20:28:51 +01:00
|
|
|
|
|
|
|
// check-pass
|
2021-07-24 01:08:33 -07:00
|
|
|
// compile-flags: --force-warn foo-qux
|
2023-08-28 20:28:51 +01:00
|
|
|
|
2021-07-08 21:35:26 -07:00
|
|
|
// error-pattern: unknown lint: `foo_qux`
|
2023-08-28 20:28:51 +01:00
|
|
|
// error-pattern: requested on the command line with `--force-warn foo_qux`
|
|
|
|
// error-pattern: `#[warn(unknown_lints)]` on by default
|
2021-07-08 21:35:26 -07:00
|
|
|
|
|
|
|
fn main() {}
|