fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
355 B18 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   | |_____^
9   |
10help: surround the struct literal with parentheses
11   |
12LL |     match (Foo {
13LL |         x: 3
14LL |     }) {
15   |
16
17error: aborting due to previous error
18