summary refs log tree commit diff
path: root/src/test/ui/match/match-range-fail.stderr
blob: dbc251020a93012aeefc7c51b0fa89529a66be62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
error[E0029]: only char and numeric types are allowed in range patterns
  --> $DIR/match-range-fail.rs:13:9
   |
LL |         "bar" ..= "foo" => { }
   |         ^^^^^^^^^^^^^^^ ranges require char or numeric types
   |
   = note: start type: &'static str
   = note: end type: &'static str

error[E0029]: only char and numeric types are allowed in range patterns
  --> $DIR/match-range-fail.rs:20:16
   |
LL |         10 ..= "what" => ()
   |                ^^^^^^ ranges require char or numeric types
   |
   = note: start type: {integer}
   = note: end type: &'static str

error[E0308]: mismatched types
  --> $DIR/match-range-fail.rs:27:9
   |
LL |         'c' ..= 100 => { }
   |         ^^^^^^^^^^^ expected integral variable, found char
   |
   = note: expected type `{integer}`
              found type `char`

error: aborting due to 3 previous errors

Some errors occurred: E0029, E0308.
For more information about an error, try `rustc --explain E0029`.