]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/must_use-unit.stderr
Auto merge of #106989 - clubby789:is-zero-num, r=scottmcm
[rust.git] / tests / ui / lint / unused / must_use-unit.stderr
1 error: unused return value of `foo` that must be used
2   --> $DIR/must_use-unit.rs:13:5
3    |
4 LL |     foo();
5    |     ^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/must_use-unit.rs:2:9
9    |
10 LL | #![deny(unused_must_use)]
11    |         ^^^^^^^^^^^^^^^
12
13 error: unused return value of `bar` that must be used
14   --> $DIR/must_use-unit.rs:15:5
15    |
16 LL |     bar();
17    |     ^^^^^
18
19 error: aborting due to 2 previous errors
20