rust/src/test/ui/closure-expected.rs
2018-12-25 21:08:33 -07:00

5 lines
137 B
Rust

fn main() {
let x = Some(1);
let y = x.or_else(4);
//~^ ERROR expected a `std::ops::FnOnce<()>` closure, found `{integer}`
}