2021-04-16 10:04:15 -05:00
|
|
|
// test for issue 84128
|
2022-08-17 21:13:37 -05:00
|
|
|
// missing suggestion for similar ADT type with diffetent generic parameter
|
2021-04-16 10:04:15 -05:00
|
|
|
// on closure ReturnNoExpression
|
|
|
|
|
|
|
|
struct Foo<T>(T);
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|| {
|
|
|
|
if false {
|
|
|
|
return Foo(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
Foo(())
|
|
|
|
//~^ ERROR mismatched types [E0308]
|
|
|
|
};
|
|
|
|
}
|