]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closure-expected.rs
Auto merge of #81238 - RalfJung:copy-intrinsics, r=m-ou-se
[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 }