]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/issue-85913.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / lint / unused / issue-85913.stderr
1 error: unused logical operation that must be used
2   --> $DIR/issue-85913.rs:4:5
3    |
4 LL |     function() && return 1;
5    |     ^^^^^^^^^^^^^^^^^^^^^^ the logical operation produces a value
6    |
7 note: the lint level is defined here
8   --> $DIR/issue-85913.rs:1:9
9    |
10 LL | #![deny(unused_must_use)]
11    |         ^^^^^^^^^^^^^^^
12 help: use `let _ = ...` to ignore the resulting value
13    |
14 LL |     let _ = function() && return 1;
15    |     +++++++
16
17 error: aborting due to previous error
18