| |
| expected bool, found ()
| help: try comparing for equality: `x == x`
- |
- = note: expected type `bool`
- found type `()`
error[E0308]: mismatched types
--> $DIR/assignment-in-if.rs:20:8
| |
| expected bool, found ()
| help: try comparing for equality: `x == x`
- |
- = note: expected type `bool`
- found type `()`
error[E0308]: mismatched types
--> $DIR/assignment-in-if.rs:25:8
| |
| expected bool, found ()
| help: try comparing for equality: `y == (Foo { foo: x })`
- |
- = note: expected type `bool`
- found type `()`
error[E0308]: mismatched types
--> $DIR/assignment-in-if.rs:30:8
| |
| expected bool, found ()
| help: try comparing for equality: `3 == x`
- |
- = note: expected type `bool`
- found type `()`
error[E0308]: mismatched types
--> $DIR/assignment-in-if.rs:36:13
| |
| expected bool, found ()
| help: try comparing for equality: `x == 4`
- |
- = note: expected type `bool`
- found type `()`
error[E0308]: mismatched types
--> $DIR/assignment-in-if.rs:38:13
| |
| expected bool, found ()
| help: try comparing for equality: `x == 5`
- |
- = note: expected type `bool`
- found type `()`
error: aborting due to 6 previous errors