]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/must_use-unit.stderr
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / lint / 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