mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 05:04:23 +00:00
12 lines
383 B
Rust
12 lines
383 B
Rust
// 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
|
|
|
|
//@ error-pattern: unknown lint: `foo_qux`
|
|
//@ error-pattern: requested on the command line with `--force-warn foo_qux`
|
|
//@ error-pattern: `#[warn(unknown_lints)]` on by default
|
|
|
|
fn main() {}
|