]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/return-closures.rs
Rollup merge of #105795 - nicholasbishop:bishop-stabilize-efiapi, r=joshtriplett
[rust.git] / tests / ui / suggestions / return-closures.rs
1 fn foo() {
2     //~^ HELP try adding a return type
3     |x: &i32| 1i32
4     //~^ ERROR mismatched types
5 }
6
7 fn bar(i: impl Sized) {
8     //~^ HELP a return type might be missing here
9     || i
10     //~^ ERROR mismatched types
11 }
12
13 fn main() {}