]> git.lizzy.rs Git - rust.git/blob - src/test/ui/exclusive-range/exclusive_range_pattern_syntax_collision3.stderr
Rollup merge of #63055 - Mark-Simulacrum:save-analysis-clean-2, r=Xanewok
[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:10
9    |
10 LL |     match [5..4, 99..105, 43..44] {
11    |           ----------------------- this match expression has type `std::ops::Range<{integer}>`
12 LL |         [..9, 99..100, _] => {},
13    |          ^^^ expected struct `std::ops::Range`, found integer
14    |
15    = note: expected type `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 match expression has type `std::ops::Range<{integer}>`
23 LL |         [..9, 99..100, _] => {},
24    |               ^^^^^^^ expected struct `std::ops::Range`, found integer
25    |
26    = note: expected type `std::ops::Range<{integer}>`
27               found type `{integer}`
28
29 error: aborting due to 3 previous errors
30
31 For more information about this error, try `rustc --explain E0308`.