blob: 86c7c1537421ea7ab6e2ae3396ed7a8e82e1c0cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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() {}
|