1 // compile-flags: --force-warns bare_trait_objects -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 is accepted in the current edition