fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0308]: mismatched types 2 --> $DIR/issue-35241.rs:3:20 3 | 4LL | struct Foo(u32); 5 | ---------------- fn(u32) -> Foo {Foo} defined here 6LL | 7LL | fn test() -> Foo { Foo } 8 | --- ^^^ expected struct `Foo`, found fn item 9 | | 10 | expected `Foo` because of return type 11 | 12 = note: expected struct `Foo` 13 found fn item `fn(u32) -> Foo {Foo}` 14help: use parentheses to instantiate this tuple struct 15 | 16LL | fn test() -> Foo { Foo(_) } 17 | ^^^ 18 19error: aborting due to previous error 20 21For more information about this error, try `rustc --explain E0308`.