]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/generic_duplicate_param_use3.stderr
Fix font color for help button in ayu and dark themes
[rust.git] / src / test / ui / type-alias-impl-trait / generic_duplicate_param_use3.stderr
1 error: concrete type differs from previous defining opaque type use
2   --> $DIR/generic_duplicate_param_use3.rs:14:1
3    |
4 LL | / fn two<T: Debug, U>(t: T, _: U) -> Two<T, U> {
5 LL | |
6 LL | |     t
7 LL | | }
8    | |_^ expected `U`, got `T`
9    |
10 note: previous use here
11   --> $DIR/generic_duplicate_param_use3.rs:10:1
12    |
13 LL | / fn one<T: Debug>(t: T) -> Two<T, T> {
14 LL | |     t
15 LL | | }
16    | |_^
17
18 error: aborting due to previous error
19