fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
918 B28 linesraw
1error: `..X` range patterns are not supported
2  --> $DIR/pat-tuple-4.rs:5:10
3   |
4LL |         (.. PAT) => {}
5   |          ^^^^^^ help: try using the minimum value for the type: `MIN..PAT`
6
7error[E0658]: exclusive range pattern syntax is experimental
8  --> $DIR/pat-tuple-4.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-4.rs:11:30
18   |
19LL | const RECOVERY_WITNESS: () = 0;
20   |                              ^ expected (), found integer
21   |
22   = note: expected type `()`
23              found type `{integer}`
24
25error: aborting due to 3 previous errors
26
27Some errors have detailed explanations: E0308, E0658.
28For more information about an error, try `rustc --explain E0308`.