fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
1010 B30 linesraw
1error: `X..` range patterns are not supported
2  --> $DIR/pat-tuple-5.rs:5:10
3   |
4LL |         (PAT ..) => {}
5   |          ^^^^^^ help: try using the maximum value for the type: `PAT..MAX`
6
7error[E0658]: exclusive range pattern syntax is experimental
8  --> $DIR/pat-tuple-5.rs:5:10
9   |
10LL |         (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
16error[E0308]: mismatched types
17  --> $DIR/pat-tuple-5.rs:5:10
18   |
19LL |     match (0, 1) {
20   |           ------ this match expression has type `({integer}, {integer})`
21LL |         (PAT ..) => {}
22   |          ^^^^^^ expected tuple, found `u8`
23   |
24   = note: expected tuple `({integer}, {integer})`
25               found type `u8`
26
27error: aborting due to 3 previous errors
28
29Some errors have detailed explanations: E0308, E0658.
30For more information about an error, try `rustc --explain E0308`.