]> git.proxmox.com Git - rustc.git/blob - tests/ui/lint/unused/issue-85913.stderr
New upstream version 1.76.0+dfsg1
[rustc.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 1 previous error
18