1
1
error: equality constraints are not yet supported in `where` clauses
2
- --> $DIR/missing-bounds.rs:37 :33
2
+ --> $DIR/missing-bounds.rs:39 :33
3
3
|
4
4
LL | impl<B: Add> Add for E<B> where <B as Add>::Output = B {
5
5
| ^^^^^^^^^^^^^^^^^^^^^^ not supported
@@ -11,7 +11,7 @@ LL | impl<B: Add> Add for E<B> where B: Add<Output = B> {
11
11
| ~~~~~~~~~~~~~~~~~~
12
12
13
13
error[E0308]: mismatched types
14
- --> $DIR/missing-bounds.rs:11 :11
14
+ --> $DIR/missing-bounds.rs:13 :11
15
15
|
16
16
LL | impl<B> Add for A<B> where B: Add {
17
17
| - expected this type parameter
@@ -24,14 +24,14 @@ LL | A(self.0 + rhs.0)
24
24
= note: expected type parameter `B`
25
25
found associated type `<B as Add>::Output`
26
26
help: the type constructed contains `<B as Add>::Output` due to the type of the argument passed
27
- --> $DIR/missing-bounds.rs:11 :9
27
+ --> $DIR/missing-bounds.rs:13 :9
28
28
|
29
29
LL | A(self.0 + rhs.0)
30
30
| ^^--------------^
31
31
| |
32
32
| this argument influences the type of `A`
33
33
note: tuple struct defined here
34
- --> $DIR/missing-bounds.rs:5 :8
34
+ --> $DIR/missing-bounds.rs:7 :8
35
35
|
36
36
LL | struct A<B>(B);
37
37
| ^
@@ -41,7 +41,7 @@ LL | impl<B> Add for A<B> where B: Add<Output = B> {
41
41
| ++++++++++++
42
42
43
43
error[E0308]: mismatched types
44
- --> $DIR/missing-bounds.rs:21 :14
44
+ --> $DIR/missing-bounds.rs:23 :14
45
45
|
46
46
LL | impl<B: Add> Add for C<B> {
47
47
| - expected this type parameter
@@ -54,7 +54,7 @@ LL | Self(self.0 + rhs.0)
54
54
= note: expected type parameter `B`
55
55
found associated type `<B as Add>::Output`
56
56
note: tuple struct defined here
57
- --> $DIR/missing-bounds.rs:15 :8
57
+ --> $DIR/missing-bounds.rs:17 :8
58
58
|
59
59
LL | struct C<B>(B);
60
60
| ^
@@ -64,7 +64,7 @@ LL | impl<B: Add<Output = B>> Add for C<B> {
64
64
| ++++++++++++
65
65
66
66
error[E0369]: cannot add `B` to `B`
67
- --> $DIR/missing-bounds.rs:31 :21
67
+ --> $DIR/missing-bounds.rs:33 :21
68
68
|
69
69
LL | Self(self.0 + rhs.0)
70
70
| ------ ^ ----- B
@@ -77,7 +77,7 @@ LL | impl<B: std::ops::Add<Output = B>> Add for D<B> {
77
77
| +++++++++++++++++++++++++++
78
78
79
79
error[E0308]: mismatched types
80
- --> $DIR/missing-bounds.rs:42 :14
80
+ --> $DIR/missing-bounds.rs:44 :14
81
81
|
82
82
LL | impl<B: Add> Add for E<B> where <B as Add>::Output = B {
83
83
| - expected this type parameter
@@ -90,7 +90,7 @@ LL | Self(self.0 + rhs.0)
90
90
= note: expected type parameter `B`
91
91
found associated type `<B as Add>::Output`
92
92
note: tuple struct defined here
93
- --> $DIR/missing-bounds.rs:35 :8
93
+ --> $DIR/missing-bounds.rs:37 :8
94
94
|
95
95
LL | struct E<B>(B);
96
96
| ^
0 commit comments