about summary refs log tree commit diff
path: root/tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn2.stderr
blob: 8d79b37f0f5f3c038b6608ffffce32f8a1a71e1e (plain)
1
2
3
4
5
6
7
8
9
10
11
error: concrete type differs from previous defining opaque type use
  --> $DIR/multiple-def-uses-in-one-fn2.rs:10:63
   |
LL | fn f<A: ToString + Clone, B: ToString + Clone>(a: A, b: B) -> (X<A, B>, X<B, A>) {
   |                                                               ^^^^^^^^^^^^^^^^^^
   |                                                               |
   |                                                               expected `A`, got `B`
   |                                                               this expression supplies two conflicting concrete types for the same opaque type

error: aborting due to 1 previous error