mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
17 lines
300 B
Rust
17 lines
300 B
Rust
// test for issue 84128
|
|
// missing suggestion for similar ADT type with diffetent generic parameter
|
|
// on closure ReturnNoExpression
|
|
|
|
struct Foo<T>(T);
|
|
|
|
fn main() {
|
|
|| {
|
|
if false {
|
|
return Foo(0);
|
|
}
|
|
|
|
Foo(())
|
|
//~^ ERROR mismatched types [E0308]
|
|
};
|
|
}
|