fork/rust

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

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

1.39.0
552 B18 linesraw
1error: expected one of `)`, `,`, `@`, or `|`, found `[`
2  --> $DIR/pat-lt-bracket-7.rs:5:16
3   |
4LL |     for Thing(x[]) in foo {}
5   |                ^ expected one of `)`, `,`, `@`, or `|` here
6
7error[E0308]: mismatched types
8  --> $DIR/pat-lt-bracket-7.rs:9:30
9   |
10LL | const RECOVERY_WITNESS: () = 0;
11   |                              ^ expected (), found integer
12   |
13   = note: expected type `()`
14              found type `{integer}`
15
16error: aborting due to 2 previous errors
17
18For more information about this error, try `rustc --explain E0308`.