error: unused return value of `foo` that must be used | |
--> $DIR/must_use-unit.rs:12:5 | |
| | |
LL | foo(); | |
| ^^^^^^ | |
| | |
note: lint level defined here | |
--> $DIR/must_use-unit.rs:1:9 | |
| | |
LL | #![deny(unused_must_use)] | |
| ^^^^^^^^^^^^^^^ | |
error: unused return value of `bar` that must be used | |
--> $DIR/must_use-unit.rs:14:5 | |
| | |
LL | bar(); | |
| ^^^^^^ | |
error: aborting due to 2 previous errors | |