]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/force-warn/force-warn-cap-lints-warn.rs
Rollup merge of #87307 - michaelwoerister:pgo-unwind-msvc, r=nagisa
[rust.git] / src / test / ui / lint / force-warn / force-warn-cap-lints-warn.rs
1 // compile-flags: --cap-lints warn  --force-warn rust-2021-compatibility -Zunstable-options
2 // check-pass
3 #![allow(ellipsis_inclusive_range_patterns)]
4
5 pub fn f() -> bool {
6     let x = 123;
7     match x {
8         0...100 => true,
9         //~^ WARN range patterns are deprecated
10         //~| WARN this is accepted in the current edition
11         _ => false,
12     }
13 }
14
15 fn main() {}