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