@@ -23,13 +23,12 @@ LL | fn f<A: ToString + Clone, B: ToString + Clone>(a: A, b: B) -> (X<A, B>, X<B
23
23
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
24
25
25
error[E0308]: mismatched types
26
- --> $DIR/multiple-def-uses-in-one-fn3.rs:17 :9
26
+ --> $DIR/multiple-def-uses-in-one-fn3.rs:16 :9
27
27
|
28
28
LL | fn g<A: ToString + Clone, B: ToString + Clone>(a: A, b: B) -> (X<A, B>, X<A, B>) {
29
29
| - - found type parameter
30
30
| |
31
31
| expected type parameter
32
- LL |
33
32
LL | (a, b)
34
33
| ^ expected type parameter `A`, found type parameter `B`
35
34
|
@@ -38,18 +37,6 @@ LL | (a, b)
38
37
= note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
39
38
= note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
40
39
41
- error: concrete type differs from previous defining opaque type use
42
- --> $DIR/multiple-def-uses-in-one-fn3.rs:15:1
43
- |
44
- LL | fn g<A: ToString + Clone, B: ToString + Clone>(a: A, b: B) -> (X<A, B>, X<A, B>) {
45
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `[type error]`, got `A`
46
- |
47
- note: previous use here
48
- --> $DIR/multiple-def-uses-in-one-fn3.rs:9:1
49
- |
50
- LL | fn f<A: ToString + Clone, B: ToString + Clone>(a: A, b: B) -> (X<A, B>, X<B, A>) {
51
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52
-
53
- error: aborting due to 4 previous errors
40
+ error: aborting due to 3 previous errors
54
41
55
42
For more information about this error, try `rustc --explain E0308`.
0 commit comments