]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/force-warn/cap-lints-warn-allowed-warn-by-default-lint.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / 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() {}