]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/issue-74280.stderr
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / type-alias-impl-trait / issue-74280.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-74280.rs:9:5
3    |
4 LL | fn test() -> Test {
5    |              ---- expected `()` because of return type
6 LL |     let y = || -> Test { () };
7 LL |     7
8    |     ^ expected `()`, found integer
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0308`.