1 error: unused logical operation that must be used
2 --> $DIR/issue-85913.rs:4:5
4 LL | function() && return 1;
5 | ^^^^^^^^^^^^^^^^^^^^^^ the logical operation produces a value
7 note: the lint level is defined here
8 --> $DIR/issue-85913.rs:1:9
10 LL | #![deny(unused_must_use)]
12 help: use `let _ = ...` to ignore the resulting value
14 LL | let _ = function() && return 1;
17 error: aborting due to 1 previous error