]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/pat-tuple-5.stderr
Rollup merge of #63055 - Mark-Simulacrum:save-analysis-clean-2, r=Xanewok
[rust.git] / src / test / ui / parser / pat-tuple-5.stderr
1 error: `X..` range patterns are not supported
2   --> $DIR/pat-tuple-5.rs:5:10
3    |
4 LL |         (PAT ..) => {}
5    |          ^^^^^^ help: try using the maximum value for the type: `PAT..MAX`
6
7 error[E0658]: exclusive range pattern syntax is experimental
8   --> $DIR/pat-tuple-5.rs:5:10
9    |
10 LL |         (PAT ..) => {}
11    |          ^^^^^^
12    |
13    = note: for more information, see https://github.com/rust-lang/rust/issues/37854
14    = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
15
16 error[E0308]: mismatched types
17   --> $DIR/pat-tuple-5.rs:5:10
18    |
19 LL |     match (0, 1) {
20    |           ------ this match expression has type `({integer}, {integer})`
21 LL |         (PAT ..) => {}
22    |          ^^^^^^ expected tuple, found u8
23    |
24    = note: expected type `({integer}, {integer})`
25               found type `u8`
26
27 error: aborting due to 3 previous errors
28
29 Some errors have detailed explanations: E0308, E0658.
30 For more information about an error, try `rustc --explain E0308`.