]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closure-expected.rs
Rollup merge of #87343 - steffahn:fix_unsound_zip_optimization_only_regression_fix...
[rust.git] / src / test / ui / closure-expected.rs
1 fn main() {
2     let x = Some(1);
3     let y = x.or_else(4);
4     //~^ ERROR expected a `FnOnce<()>` closure, found `{integer}`
5 }