|
LL | {2} + {2}
| ^ expected (), found integer
- |
- = note: expected type `()`
- found type `{integer}`
error[E0308]: mismatched types
--> $DIR/expr-as-stmt.rs:12:6
|
LL | {2} + 2
| ^ expected (), found integer
- |
- = note: expected type `()`
- found type `{integer}`
error[E0308]: mismatched types
--> $DIR/expr-as-stmt.rs:18:7
|
LL | { 42 } + foo;
| ^^ expected (), found integer
- |
- = note: expected type `()`
- found type `{integer}`
error[E0308]: mismatched types
--> $DIR/expr-as-stmt.rs:24:7
|
LL | { 3 } * 3
| ^ expected (), found integer
- |
- = note: expected type `()`
- found type `{integer}`
error[E0614]: type `{integer}` cannot be dereferenced
--> $DIR/expr-as-stmt.rs:24:11