fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.5 KiB46 linesraw
1error: invalid struct literal
2  --> $DIR/issue-111692.rs:12:21
3   |
4LL |     if x == module::Type { x: module::C, y: 1 } {
5   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7help: you might need to surround the struct literal with parentheses
8   |
9LL |     if x == (module::Type { x: module::C, y: 1 }) {
10   |             +                                   +
11
12error: invalid struct literal
13  --> $DIR/issue-111692.rs:17:20
14   |
15LL |     if x ==module::Type { x: module::C, y: 1 } {
16   |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
17   |
18help: you might need to surround the struct literal with parentheses
19   |
20LL |     if x ==(module::Type { x: module::C, y: 1 }) {
21   |            +                                   +
22
23error: invalid struct literal
24  --> $DIR/issue-111692.rs:23:13
25   |
26LL |     if x == Type { x: module::C, y: 1 } {
27   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
28   |
29help: you might need to surround the struct literal with parentheses
30   |
31LL |     if x == (Type { x: module::C, y: 1 }) {
32   |             +                           +
33
34error: invalid struct literal
35  --> $DIR/issue-111692.rs:28:26
36   |
37LL |     if x == demo_module::Type { x: module::C, y: 1 } {
38   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
39   |
40help: you might need to surround the struct literal with parentheses
41   |
42LL |     if x == (demo_module::Type { x: module::C, y: 1 }) {
43   |             +                                        +
44
45error: aborting due to 4 previous errors
46