]> git.lizzy.rs Git - rust.git/blob - src/test/ui/exclusive-range/exclusive_range_pattern_syntax_collision3.stderr
6abba7d7cab10a6bb1a367b3d14ed96f56170c48
[rust.git] / src / test / ui / exclusive-range / exclusive_range_pattern_syntax_collision3.stderr
1 error: `..X` range patterns are not supported
2   --> $DIR/exclusive_range_pattern_syntax_collision3.rs:5:10
3    |
4 LL |         [..9, 99..100, _] => {},
5    |          ^^^ help: try using the minimum value for the type: `MIN..9`
6
7 error[E0308]: mismatched types
8   --> $DIR/exclusive_range_pattern_syntax_collision3.rs:5:12
9    |
10 LL |     match [5..4, 99..105, 43..44] {
11    |           ----------------------- this expression has type `std::ops::Range<{integer}>`
12 LL |         [..9, 99..100, _] => {},
13    |            ^ expected struct `std::ops::Range`, found integer
14    |
15    = note: expected struct `std::ops::Range<{integer}>`
16                 found type `{integer}`
17
18 error[E0308]: mismatched types
19   --> $DIR/exclusive_range_pattern_syntax_collision3.rs:5:15
20    |
21 LL |     match [5..4, 99..105, 43..44] {
22    |           ----------------------- this expression has type `std::ops::Range<{integer}>`
23 LL |         [..9, 99..100, _] => {},
24    |               ^^  --- this is of type `{integer}`
25    |               |
26    |               expected struct `std::ops::Range`, found integer
27    |
28    = note: expected struct `std::ops::Range<{integer}>`
29                 found type `{integer}`
30
31 error[E0308]: mismatched types
32   --> $DIR/exclusive_range_pattern_syntax_collision3.rs:5:19
33    |
34 LL |     match [5..4, 99..105, 43..44] {
35    |           ----------------------- this match expression has type `std::ops::Range<{integer}>`
36 LL |         [..9, 99..100, _] => {},
37    |               --  ^^^ expected struct `std::ops::Range`, found integer
38    |               |
39    |               this is of type `{integer}`
40    |
41    = note: expected struct `std::ops::Range<{integer}>`
42                 found type `{integer}`
43
44 error: aborting due to 4 previous errors
45
46 For more information about this error, try `rustc --explain E0308`.