summary refs log tree commit diff
path: root/src/test/ui/lint/force-warn/force-warn-cap-lints-allow.rs
blob: e10d161e7c62b3d78ed9693bb18600210b361c91 (plain)
1
2
3
4
5
6
7
8
9
10
// compile-flags: --cap-lints allow  --force-warn bare_trait_objects -Zunstable-options
// check-pass

pub trait SomeTrait {}

pub fn function(_x: Box<SomeTrait>) {}
//~^ WARN trait objects without an explicit `dyn` are deprecated
//~| WARN this is accepted in the current edition

fn main() {}