rust/tests/ui/lint/unused/issue-85913.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
202 B
Rust
Raw Normal View History

#![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() {}