2021-07-29 15:35:03 -05:00
|
|
|
error: unused logical operation that must be used
|
|
|
|
--> $DIR/issue-85913.rs:4:5
|
|
|
|
|
|
|
|
|
LL | function() && return 1;
|
2021-07-30 16:21:52 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ the logical operation produces a value
|
2021-07-29 15:35:03 -05:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/issue-85913.rs:1:9
|
|
|
|
|
|
|
|
|
LL | #![deny(unused_must_use)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2021-07-30 16:21:52 -05:00
|
|
|
help: use `let _ = ...` to ignore the resulting value
|
|
|
|
|
|
|
|
|
LL | let _ = function() && return 1;
|
2021-06-21 21:07:19 -05:00
|
|
|
| +++++++
|
2021-07-29 15:35:03 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2021-07-29 15:35:03 -05:00
|
|
|
|