fork/rust

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

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

1.39.0
350 B17 linesraw
1error: struct literals are not allowed here
2  --> $DIR/struct-literal-in-match-discriminant.rs:6:11
3   |
4LL |       match Foo {
5   |  ___________^
6LL | |         x: 3
7LL | |     } {
8   | |_____^
9help: surround the struct literal with parentheses
10   |
11LL |     match (Foo {
12LL |         x: 3
13LL |     }) {
14   |
15
16error: aborting due to previous error
17