1
1
error[E0277]: the trait bound `NotClone: std::clone::Clone` is not satisfied
2
- --> $DIR/defaults-suitability.rs:17 :14
2
+ --> $DIR/defaults-suitability.rs:15 :14
3
3
|
4
4
LL | trait Tr {
5
5
| -------- required by `Tr`
6
6
LL | type Ty: Clone = NotClone;
7
7
| ^^^^^ the trait `std::clone::Clone` is not implemented for `NotClone`
8
8
9
9
error[E0277]: the trait bound `NotClone: std::clone::Clone` is not satisfied
10
- --> $DIR/defaults-suitability.rs:22 :27
10
+ --> $DIR/defaults-suitability.rs:20 :27
11
11
|
12
12
LL | trait Tr2 where Self::Ty: Clone {
13
13
| --------------------------^^^^^
@@ -16,20 +16,22 @@ LL | trait Tr2 where Self::Ty: Clone {
16
16
| required by `Tr2`
17
17
18
18
error[E0277]: the trait bound `T: std::clone::Clone` is not satisfied
19
- --> $DIR/defaults-suitability.rs:35 :15
19
+ --> $DIR/defaults-suitability.rs:33 :15
20
20
|
21
21
LL | trait Foo<T> {
22
- | ------------
23
- | | |
24
- | | help: consider restricting this bound: `T: std::clone::Clone`
25
- | required by `Foo`
22
+ | ------------ required by `Foo`
26
23
LL | type Bar: Clone = Vec<T>;
27
24
| ^^^^^ the trait `std::clone::Clone` is not implemented for `T`
28
25
|
26
+ help: consider restricting this type parameter with `T: std::clone::Clone`
27
+ --> $DIR/defaults-suitability.rs:32:11
28
+ |
29
+ LL | trait Foo<T> {
30
+ | ^
29
31
= note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<T>`
30
32
31
33
error[E0277]: the trait bound `(): Foo<Self>` is not satisfied
32
- --> $DIR/defaults-suitability.rs:41 :17
34
+ --> $DIR/defaults-suitability.rs:39 :17
33
35
|
34
36
LL | trait Bar: Sized {
35
37
| ---------------- required by `Bar`
@@ -38,7 +40,7 @@ LL | type Assoc: Foo<Self> = ();
38
40
| ^^^^^^^^^ the trait `Foo<Self>` is not implemented for `()`
39
41
40
42
error[E0277]: the trait bound `NotClone: IsU8<NotClone>` is not satisfied
41
- --> $DIR/defaults-suitability.rs:61 :18
43
+ --> $DIR/defaults-suitability.rs:59 :18
42
44
|
43
45
LL | / trait D where
44
46
LL | | Vec<Self::Assoc>: Clone,
@@ -51,7 +53,7 @@ LL | | }
51
53
| |_- required by `D`
52
54
53
55
error[E0277]: the trait bound `bool: IsU8<NotClone>` is not satisfied
54
- --> $DIR/defaults-suitability.rs:63 :11
56
+ --> $DIR/defaults-suitability.rs:61 :11
55
57
|
56
58
LL | / trait D where
57
59
LL | | Vec<Self::Assoc>: Clone,
@@ -66,7 +68,7 @@ LL | | }
66
68
| |_- required by `D`
67
69
68
70
error[E0277]: the trait bound `NotClone: std::clone::Clone` is not satisfied
69
- --> $DIR/defaults-suitability.rs:59 :23
71
+ --> $DIR/defaults-suitability.rs:57 :23
70
72
|
71
73
LL | / trait D where
72
74
LL | | Vec<Self::Assoc>: Clone,
@@ -81,7 +83,7 @@ LL | | }
81
83
= note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<NotClone>`
82
84
83
85
error[E0277]: the trait bound `<Self as Foo2<T>>::Baz: std::clone::Clone` is not satisfied
84
- --> $DIR/defaults-suitability.rs:74 :15
86
+ --> $DIR/defaults-suitability.rs:72 :15
85
87
|
86
88
LL | trait Foo2<T> {
87
89
| -------------- help: consider further restricting the associated type: `where <Self as Foo2<T>>::Baz: std::clone::Clone`
@@ -93,7 +95,7 @@ LL | type Bar: Clone = Vec<Self::Baz>;
93
95
= note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<<Self as Foo2<T>>::Baz>`
94
96
95
97
error[E0277]: the trait bound `<Self as Foo25<T>>::Baz: std::clone::Clone` is not satisfied
96
- --> $DIR/defaults-suitability.rs:83 :15
98
+ --> $DIR/defaults-suitability.rs:81 :15
97
99
|
98
100
LL | trait Foo25<T: Clone> {
99
101
| ---------------------- help: consider further restricting the associated type: `where <Self as Foo25<T>>::Baz: std::clone::Clone`
@@ -105,22 +107,26 @@ LL | type Bar: Clone = Vec<Self::Baz>;
105
107
= note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<<Self as Foo25<T>>::Baz>`
106
108
107
109
error[E0277]: the trait bound `T: std::clone::Clone` is not satisfied
108
- --> $DIR/defaults-suitability.rs:92 :16
110
+ --> $DIR/defaults-suitability.rs:90 :16
109
111
|
110
112
LL | / trait Foo3<T> where
111
113
LL | | Self::Bar: Clone,
112
114
LL | | Self::Baz: Clone,
113
- | | ^^^^^ - help: consider further restricting type parameter `T`: `, T: std::clone::Clone`
114
- | | |
115
- | | the trait `std::clone::Clone` is not implemented for `T`
115
+ | | ^^^^^ the trait `std::clone::Clone` is not implemented for `T`
116
116
LL | |
117
117
... |
118
118
LL | | type Baz = T;
119
119
LL | | }
120
120
| |_- required by `Foo3`
121
+ |
122
+ help: consider restricting this type parameter with `where T: std::clone::Clone`
123
+ --> $DIR/defaults-suitability.rs:88:12
124
+ |
125
+ LL | trait Foo3<T> where
126
+ | ^
121
127
122
128
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
123
- --> $DIR/defaults-suitability.rs:29 :5
129
+ --> $DIR/defaults-suitability.rs:27 :5
124
130
|
125
131
LL | type Ty = Vec<[u8]>;
126
132
| ^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
0 commit comments