fork/rust

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

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

master
381 B13 linesraw
1error: invalid struct literal
2  --> $DIR/method-call-on-struct-literal-in-if-condition.rs:10:8
3   |
4LL |     if Example { a: one(), }.is_pos() {
5   |        ^^^^^^^^^^^^^^^^^^^^^
6   |
7help: you might need to surround the struct literal with parentheses
8   |
9LL |     if (Example { a: one(), }).is_pos() {
10   |        +                     +
11
12error: aborting due to previous error
13