summaryrefslogtreecommitdiffstats
path: root/src/test/ui/closures/closure-expected.rs
blob: 68cac3dd85edfa5cae2fd781d05cae4e7d630dbf (plain)
1
2
3
4
5
fn main() {
    let x = Some(1);
    let y = x.or_else(4);
    //~^ ERROR expected a `FnOnce<()>` closure, found `{integer}`
}