]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/force-warn/cap-lints-warn-allowed-warn-by-default-lint.rs
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / force-warn / cap-lints-warn-allowed-warn-by-default-lint.rs
1 // --force-warn $LINT_GROUP causes $LINT to warn despite $LINT being
2 // allowed in module and cap-lints set to warn
3 // compile-flags: --cap-lints warn  --force-warn rust-2021-compatibility
4 // check-pass
5 #![allow(ellipsis_inclusive_range_patterns)]
6
7 pub fn f() -> bool {
8     let x = 123;
9     match x {
10         0...100 => true,
11         //~^ WARN range patterns are deprecated
12         //~| WARN this is accepted in the current edition
13         _ => false,
14     }
15 }
16
17 fn main() {}