]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closure-expected.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[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 `std::ops::FnOnce<()>` closure, found `{integer}`
5 }