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