rust/src/test/ui/issue-35241.stderr

16 lines
495 B
Plaintext
Raw Normal View History

error[E0308]: mismatched types
--> $DIR/issue-35241.rs:13:20
|
2017-11-20 06:13:27 -06:00
13 | fn test() -> Foo { Foo } //~ ERROR mismatched types
| --- ^^^
| | |
| | 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