mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
14 lines
202 B
Rust
14 lines
202 B
Rust
#![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() {}
|