]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/force-warn/force-warn-group-allow-warning.rs
Rollup merge of #82179 - mbartlett21:patch-5, r=joshtriplett
[rust.git] / src / test / ui / lint / force-warn / force-warn-group-allow-warning.rs
1 // compile-flags: --force-warns rust-2018-idioms -Zunstable-options
2 // check-pass
3
4 #![allow(bare_trait_objects)]
5
6 pub trait SomeTrait {}
7
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
11
12 fn main() {}