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