]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/return-closures.rs
Rollup merge of #105505 - WaffleLapkin:yeet_unused_parens_lint, r=fee1-dead
[rust.git] / src / test / 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() {}