fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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