]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/issue-85913.rs
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[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() {}