1 // compile-flags: --force-warns rust_2018_idioms -Zunstable-options
4 #![allow(rust_2018_idioms)]
8 pub fn function(_x: Box<SomeTrait>) {}
9 //~^ WARN trait objects without an explicit `dyn` are deprecated
10 //~| WARN this was previously accepted by the compiler