]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/generic_duplicate_param_use9.stderr
Add test for issue-63279
[rust.git] / src / test / ui / type-alias-impl-trait / generic_duplicate_param_use9.stderr
1 error: concrete type differs from previous defining opaque type use
2   --> $DIR/generic_duplicate_param_use9.rs:18:1
3    |
4 LL | / fn three<T: Debug, U: Debug>(t: T, u: U) -> Two<T, U> {
5 LL | |     (t, u, 42)
6 LL | | }
7    | |_^ expected `(A, B, <A as Foo>::Bar)`, got `(A, B, i32)`
8    |
9 note: previous use here
10   --> $DIR/generic_duplicate_param_use9.rs:14:1
11    |
12 LL | / fn two<T: Debug + Foo, U: Debug>(t: T, u: U) -> Two<T, U> {
13 LL | |     (t, u, T::BAR)
14 LL | | }
15    | |_^
16
17 error: aborting due to previous error
18