blob: fd029a3d55cb9e0f75bfffe129249f45b1735676 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// compile-flags: --force-warns rust_2018_idioms -Zunstable-options
// check-pass
#![allow(bare_trait_objects)]
pub trait SomeTrait {}
pub fn function(_x: Box<SomeTrait>) {}
//~^ WARN trait objects without an explicit `dyn` are deprecated
//~| WARN this was previously accepted by the compiler
fn main() {}
|