16 lines
468 B
Plaintext
16 lines
468 B
Plaintext
|
error[E0308]: mismatched types
|
||
|
--> $DIR/issue-35241.rs:13:20
|
||
|
|
|
||
|
13 | fn test() -> Foo { Foo }
|
||
|
| --- ^^^
|
||
|
| | |
|
||
|
| | expected struct `Foo`, found fn item
|
||
|
| | did you mean `Foo(/* fields */)`?
|
||
|
| expected `Foo` because of return type
|
||
|
|
|
||
|
= note: expected type `Foo`
|
||
|
found type `fn(u32) -> Foo {Foo::{{constructor}}}`
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|