rust/tests/ui/inference/issue-113354.rs

5 lines
103 B
Rust

//run-rustfix
fn main() {
let _ = || { while Some(_) = Some(1) { } }; //~ ERROR mismatched types
}