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