2021-07-09 04:35:26 +00:00
|
|
|
// 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.
|
2023-08-28 19:28:51 +00:00
|
|
|
|
|
|
|
// check-pass
|
2021-07-24 08:08:33 +00:00
|
|
|
// compile-flags: --force-warn foo-qux
|
2023-08-28 19:28:51 +00:00
|
|
|
|
2021-07-09 04:35:26 +00:00
|
|
|
// error-pattern: unknown lint: `foo_qux`
|
2023-08-28 19:28:51 +00:00
|
|
|
// error-pattern: requested on the command line with `--force-warn foo_qux`
|
|
|
|
// error-pattern: `#[warn(unknown_lints)]` on by default
|
2021-07-09 04:35:26 +00:00
|
|
|
|
|
|
|
fn main() {}
|