]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/issue-85913.rs
Auto merge of #106989 - clubby789:is-zero-num, r=scottmcm
[rust.git] / tests / ui / lint / unused / issue-85913.rs
1 #![deny(unused_must_use)]
2
3 pub fn fun() -> i32 {
4     function() && return 1;
5     //~^ ERROR: unused logical operation that must be used
6     return 0;
7 }
8
9 fn function() -> bool {
10     true
11 }
12
13 fn main() {}