summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/unused/issue-85913.stderr
blob: 8234ed3b1678c6de3359b8e03a4c6aedfedd78af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: unused logical operation that must be used
  --> $DIR/issue-85913.rs:4:5
   |
LL |     function() && return 1;
   |     ^^^^^^^^^^^^^^^^^^^^^^ the logical operation produces a value
   |
note: the lint level is defined here
  --> $DIR/issue-85913.rs:1:9
   |
LL | #![deny(unused_must_use)]
   |         ^^^^^^^^^^^^^^^
help: use `let _ = ...` to ignore the resulting value
   |
LL |     let _ = function() && return 1;
   |     +++++++

error: aborting due to previous error