fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.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 | --- ^^^ 9 | | | 10 | | expected struct `Foo`, found fn item 11 | | help: use parentheses to instantiate this tuple struct: `Foo(_)` 12 | expected `Foo` because of return type 13 | 14 = note: expected struct `Foo` 15 found fn item `fn(u32) -> Foo {Foo}` 16 17error: aborting due to previous error 18 19For more information about this error, try `rustc --explain E0308`.