]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-74280.stderr
79c7df788f46c21f0ff25b4dad4ba08d6c27c9cb
[rust.git] / src / test / ui / type-alias-impl-trait / issue-74280.stderr
1 error: concrete type differs from previous defining opaque type use
2   --> $DIR/issue-74280.rs:8:13
3    |
4 LL |     let y = || -> Test { () };
5    |             ^^^^^^^^^^^^^^^^^ expected `i32`, got `()`
6    |
7 note: previous use here
8   --> $DIR/issue-74280.rs:7:1
9    |
10 LL | fn test() -> Test {
11    | ^^^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14