]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/force-warn/lint-group-allowed-lint-group.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / lint / force-warn / lint-group-allowed-lint-group.rs
1 // --force-warn $LINT_GROUP causes $LINT to warn despite
2 // $LINT_GROUP being allowed in module
3 // compile-flags: --force-warn rust_2018_idioms
4 // check-pass
5
6 #![allow(rust_2018_idioms)]
7
8 pub trait SomeTrait {}
9
10 pub fn function(_x: Box<SomeTrait>) {}
11 //~^ WARN trait objects without an explicit `dyn` are deprecated
12 //~| WARN this is accepted in the current edition
13 //~| WARN trait objects without an explicit `dyn` are deprecated
14 //~| WARN this is accepted in the current edition
15 //~| WARN trait objects without an explicit `dyn` are deprecated
16 //~| WARN this is accepted in the current edition
17
18 fn main() {}