☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
exclusive_range_pattern.rs
☽
☼
gcc/testsuite/rust/compile/exclusive_range_pattern.rs
code
plain
raw
1
// { dg-options "-fsyntax-only" }
2
#![feature(exclusive_range_pattern)]
3
4
const TEN: usize = 10;
5
6
fn test(n: usize) {
7
match n {
8
0..TEN => (),
9
TEN..20 => (),
10
20..30 => (),
11
_ => (),
12
}
13
}
14
15
fn test2(t: usize) {
16
if let 0..10 = t {}
17
}