rust/src/test/ui/lint/force-warn/force-warn-group.rs
2021-06-25 14:51:56 +02:00

13 lines
304 B
Rust

// compile-flags: --force-warns rust_2018_idioms -Zunstable-options
// check-pass
#![allow(rust_2018_idioms)]
pub trait SomeTrait {}
pub fn function(_x: Box<SomeTrait>) {}
//~^ WARN trait objects without an explicit `dyn` are deprecated
//~| WARN this is accepted in the current edition
fn main() {}