rust/tests/ui/suggestions/return-closures.rs
2023-01-11 09:32:08 +00:00

14 lines
235 B
Rust

fn foo() {
//~^ HELP try adding a return type
|x: &i32| 1i32
//~^ ERROR mismatched types
}
fn bar(i: impl Sized) {
//~^ HELP a return type might be missing here
|| i
//~^ ERROR mismatched types
}
fn main() {}