]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/return-closures.rs
Rollup merge of #105427 - GuillaumeGomez:dont-silently-ignore-rustdoc-errors, r=notriddle
[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() {}