fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
924 B28 linesraw
1error: expected one of `)`, `,`, `@`, or `|`, found `[`
2  --> $DIR/pat-lt-bracket-6.rs:5:19
3   |
4LL |     let Test(&desc[..]) = x;
5   |                   ^ expected one of `)`, `,`, `@`, or `|` here
6
7error[E0658]: subslice patterns are unstable
8  --> $DIR/pat-lt-bracket-6.rs:5:20
9   |
10LL |     let Test(&desc[..]) = x;
11   |                    ^^
12   |
13   = note: for more information, see https://github.com/rust-lang/rust/issues/62254
14   = help: add `#![feature(slice_patterns)]` to the crate attributes to enable
15
16error[E0308]: mismatched types
17  --> $DIR/pat-lt-bracket-6.rs:10: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`.