1 // compile-flags: --force-warns rust-2018-idioms -Zunstable-options
4 #![allow(bare_trait_objects)]
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