mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
6 lines
233 B
Rust
6 lines
233 B
Rust
//@ run-rustfix
|
|
fn main() {
|
|
let _ = (-10..=10).find(|x: i32| x.signum() == 0); //~ ERROR type mismatch in closure arguments
|
|
let _ = (-10..=10).find(|x: &&&i32| x.signum() == 0); //~ ERROR type mismatch in closure arguments
|
|
}
|