]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/force-warn/force-warns-cap-lints-allow.rs
Allow combining -Cprofile-generate and -Cpanic=unwind when targeting
[rust.git] / src / test / ui / lint / force-warn / force-warns-cap-lints-allow.rs
1 // compile-flags: --cap-lints allow  --force-warns bare_trait_objects -Zunstable-options
2 // check-pass
3
4 pub trait SomeTrait {}
5
6 pub fn function(_x: Box<SomeTrait>) {}
7 //~^ WARN trait objects without an explicit `dyn` are deprecated
8 //~| WARN this is accepted in the current edition
9
10 fn main() {}