summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/unused/issue-85913.rs
blob: 7f3817b6ef1cc0633aef58b15c6c47b6a67ccf39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![deny(unused_must_use)]

pub fn fun() -> i32 {
    function() && return 1;
    //~^ ERROR: unused logical operation that must be used
    return 0;
}

fn function() -> bool {
    true
}

fn main() {}