summary refs log tree commit diff
path: root/src/test/compile-fail/alt-range-fail.rs
blob: 9e0d39c89240c7810545dbeb2c763c9a578d74f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//error-pattern: lower range bound
//error-pattern: non-numeric
//error-pattern: mismatched types

fn main() {
    match 5u {
      6u .. 1u => { }
      _ => { }
    };

    match "wow" {
      "bar" .. "foo" => { }
    };

    match 5u {
      'c' .. 100u => { }
      _ => { }
    };
}