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