]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/issue-52843-closure-constrain.stderr
Rollup merge of #104672 - Voultapher:unify-sort-modules, r=thomcc
[rust.git] / tests / ui / type-alias-impl-trait / issue-52843-closure-constrain.stderr
1 error: concrete type differs from previous defining opaque type use
2   --> $DIR/issue-52843-closure-constrain.rs:10:31
3    |
4 LL |     let null = || -> Opaque { 0 };
5    |                               ^ expected `String`, got `i32`
6    |
7 note: previous use here
8   --> $DIR/issue-52843-closure-constrain.rs:9:30
9    |
10 LL |     fn _unused() -> Opaque { String::new() }
11    |                              ^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14