]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/unused/issue-85913.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / 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() {}