]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issue-35241.stderr
New upstream version 1.23.0+dfsg1
[rustc.git] / src / test / ui / issue-35241.stderr
1 error[E0308]: mismatched types
2 --> $DIR/issue-35241.rs:13:20
3 |
4 13 | fn test() -> Foo { Foo }
5 | --- ^^^
6 | | |
7 | | expected struct `Foo`, found fn item
8 | | did you mean `Foo(/* fields */)`?
9 | expected `Foo` because of return type
10 |
11 = note: expected type `Foo`
12 found type `fn(u32) -> Foo {Foo::{{constructor}}}`
13
14 error: aborting due to previous error
15