]>
git.proxmox.com Git - rustc.git/blob - 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
6 #![allow(rust_2018_idioms)]
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