1 error[E0308]: mismatched types
2 --> $DIR/issue-74280.rs:9:5
4 LL | type Test = impl Copy;
5 | --------- the expected opaque type
7 LL | fn test() -> Test {
8 | ---- expected `Test` because of return type
9 LL | let y = || -> Test { () };
11 | ^ expected `()`, found integer
13 = note: expected opaque type `Test`
14 found type `{integer}`
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0308`.