1
1
error[E0119]: conflicting implementations of trait `Foo<_>` for type `[isize; 0]`
2
- --> $DIR/impl-unused-tps .rs:28 :1
2
+ --> $DIR/constrained-type-params-trait-impl .rs:37 :1
3
3
|
4
4
LL | impl<T> Foo<T> for [isize; 0] {
5
5
| ----------------------------- first implementation here
@@ -8,7 +8,7 @@ LL | impl<T, U> Foo<T> for U {
8
8
| ^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `[isize; 0]`
9
9
10
10
error[E0119]: conflicting implementations of trait `Foo<[isize; 0]>` for type `[isize; 0]`
11
- --> $DIR/impl-unused-tps .rs:49 :1
11
+ --> $DIR/constrained-type-params-trait-impl .rs:57 :1
12
12
|
13
13
LL | impl<T> Foo<T> for [isize; 0] {
14
14
| ----------------------------- first implementation here
@@ -19,7 +19,7 @@ LL | | (T, U): Bar<Out = V>,
19
19
| |_________________________^ conflicting implementation for `[isize; 0]`
20
20
21
21
error[E0119]: conflicting implementations of trait `Foo<([isize; 0], _)>` for type `[isize; 0]`
22
- --> $DIR/impl-unused-tps .rs:61 :1
22
+ --> $DIR/constrained-type-params-trait-impl .rs:67 :1
23
23
|
24
24
LL | impl<T> Foo<T> for [isize; 0] {
25
25
| ----------------------------- first implementation here
@@ -30,37 +30,37 @@ LL | | (T, U): Bar<Out = V>,
30
30
| |_________________________^ conflicting implementation for `[isize; 0]`
31
31
32
32
error[E0207]: the type parameter `U` is not constrained by the impl trait, self type, or predicates
33
- --> $DIR/impl-unused-tps .rs:13 :9
33
+ --> $DIR/constrained-type-params-trait-impl .rs:21 :9
34
34
|
35
35
LL | impl<T, U> Foo<T> for [isize; 1] {
36
36
| ^ unconstrained type parameter
37
37
38
38
error[E0207]: the type parameter `U` is not constrained by the impl trait, self type, or predicates
39
- --> $DIR/impl-unused-tps .rs:32 :9
39
+ --> $DIR/constrained-type-params-trait-impl .rs:42 :9
40
40
|
41
41
LL | impl<T, U> Bar for T {
42
42
| ^ unconstrained type parameter
43
43
44
44
error[E0207]: the type parameter `U` is not constrained by the impl trait, self type, or predicates
45
- --> $DIR/impl-unused-tps .rs:40 :9
45
+ --> $DIR/constrained-type-params-trait-impl .rs:48 :9
46
46
|
47
47
LL | impl<T, U> Bar for T
48
48
| ^ unconstrained type parameter
49
49
50
50
error[E0207]: the type parameter `U` is not constrained by the impl trait, self type, or predicates
51
- --> $DIR/impl-unused-tps .rs:49 :9
51
+ --> $DIR/constrained-type-params-trait-impl .rs:57 :9
52
52
|
53
53
LL | impl<T, U, V> Foo<T> for T
54
54
| ^ unconstrained type parameter
55
55
56
56
error[E0207]: the type parameter `V` is not constrained by the impl trait, self type, or predicates
57
- --> $DIR/impl-unused-tps .rs:49 :12
57
+ --> $DIR/constrained-type-params-trait-impl .rs:57 :12
58
58
|
59
59
LL | impl<T, U, V> Foo<T> for T
60
60
| ^ unconstrained type parameter
61
61
62
62
error[E0119]: conflicting implementations of trait `Bar`
63
- --> $DIR/impl-unused-tps .rs:40 :1
63
+ --> $DIR/constrained-type-params-trait-impl .rs:48 :1
64
64
|
65
65
LL | impl<T, U> Bar for T {
66
66
| -------------------- first implementation here
0 commit comments