]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/struct-literal-in-if.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / parser / struct-literal-in-if.stderr
CommitLineData
48663c56
XL
1error: struct literals are not allowed here
2 --> $DIR/struct-literal-in-if.rs:12:8
532ac7d7 3 |
48663c56
XL
4LL | if Foo {
5 | ________^
6LL | | x: 3
7LL | | }.hi() {
8 | |_____^
e74abb32 9 |
48663c56 10help: surround the struct literal with parentheses
532ac7d7 11 |
94222f64 12LL ~ if (Foo {
532ac7d7 13LL | x: 3
94222f64 14LL ~ }).hi() {
0731742a 15 |
0731742a 16
48663c56 17error: aborting due to previous error
0bf4aa26 18