summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-alias-impl-trait/issue-74280.stderr
blob: 5ed29e0ac94ff77825ba3380e31cc2674183603c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0308]: mismatched types
  --> $DIR/issue-74280.rs:9:5
   |
LL | fn test() -> Test {
   |              ---- expected `_` because of return type
LL |     let y = || -> Test { () };
LL |     7
   |     ^ expected `()`, found integer

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.