summary refs log tree commit diff
path: root/src/test/ui/lint/force-warn/force-warn-group-allow-warning.rs
blob: 193ba2b6f0da52bbeb597cb0d4443a5c383b0dd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// compile-flags: --force-warn 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 is accepted in the current edition

fn main() {}