]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/force-warn/force-lint-in-allowed-group.rs
Rollup merge of #84687 - a1phyr:improve_rwlock, r=m-ou-se
[rust.git] / src / test / ui / lint / force-warn / force-lint-in-allowed-group.rs
1 // compile-flags: --force-warns bare_trait_objects
2 // check-pass
3
4 #![allow(rust_2018_idioms)]
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() {}