]> git.lizzy.rs Git - rust.git/blob - src/test/ui/exclusive-range/exclusive_range_pattern_syntax_collision.stderr
Rollup merge of #63055 - Mark-Simulacrum:save-analysis-clean-2, r=Xanewok
[rust.git] / src / test / ui / exclusive-range / exclusive_range_pattern_syntax_collision.stderr
1 error: `X..` range patterns are not supported
2   --> $DIR/exclusive_range_pattern_syntax_collision.rs:5:13
3    |
4 LL |         [_, 99.., _] => {},
5    |             ^^^^ help: try using the maximum value for the type: `99..MAX`
6
7 error[E0308]: mismatched types
8   --> $DIR/exclusive_range_pattern_syntax_collision.rs:5:13
9    |
10 LL |     match [5..4, 99..105, 43..44] {
11    |           ----------------------- this match expression has type `std::ops::Range<{integer}>`
12 LL |         [_, 99.., _] => {},
13    |             ^^^^ expected struct `std::ops::Range`, found integer
14    |
15    = note: expected type `std::ops::Range<{integer}>`
16               found type `{integer}`
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0308`.