rust/tests/ui/lint/lint-renamed-cmdline-deny.rs
2024-02-16 20:02:50 +00:00

11 lines
442 B
Rust

//@ compile-flags:-D renamed-and-removed-lints -D bare_trait_object
//@ error-pattern:lint `bare_trait_object` has been renamed to `bare_trait_objects`
//@ error-pattern:use the new name `bare_trait_objects`
//@ error-pattern:requested on the command line with `-D bare_trait_object`
//@ error-pattern:requested on the command line with `-D renamed-and-removed-lints`
//@ error-pattern:unused
#[deny(unused)]
fn main() { let unused = (); }