]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/issue-74280.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / issue-74280.stderr
1 error[E0308]: mismatched types
2 --> $DIR/issue-74280.rs:9:5
3 |
4 LL | type Test = impl Copy;
5 | --------- the expected opaque type
6 LL |
7 LL | fn test() -> Test {
8 | ---- expected `Test` because of return type
9 LL | let y = || -> Test { () };
10 LL | 7
11 | ^ expected `()`, found integer
12 |
13 = note: expected opaque type `Test`
14 found type `{integer}`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0308`.