|
1 | 1 | error[E0277]: the trait bound `NotClone: std::clone::Clone` is not satisfied
|
2 | 2 | --> $DIR/defaults-suitability.rs:17:14
|
3 | 3 | |
|
| 4 | +LL | trait Tr { |
| 5 | + | -------- required by `Tr` |
4 | 6 | LL | type Ty: Clone = NotClone;
|
5 | 7 | | ^^^^^ the trait `std::clone::Clone` is not implemented for `NotClone`
|
6 |
| - | |
7 |
| -note: required by `Tr` |
8 |
| - --> $DIR/defaults-suitability.rs:16:1 |
9 |
| - | |
10 |
| -LL | trait Tr { |
11 |
| - | ^^^^^^^^ |
12 | 8 |
|
13 | 9 | error[E0277]: the trait bound `NotClone: std::clone::Clone` is not satisfied
|
14 | 10 | --> $DIR/defaults-suitability.rs:22:27
|
15 | 11 | |
|
16 | 12 | LL | trait Tr2 where Self::Ty: Clone {
|
17 |
| - | ^^^^^ the trait `std::clone::Clone` is not implemented for `NotClone` |
18 |
| - | |
19 |
| -note: required by `Tr2` |
20 |
| - --> $DIR/defaults-suitability.rs:22:1 |
21 |
| - | |
22 |
| -LL | trait Tr2 where Self::Ty: Clone { |
23 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 13 | + | --------------------------^^^^^ |
| 14 | + | | | |
| 15 | + | | the trait `std::clone::Clone` is not implemented for `NotClone` |
| 16 | + | required by `Tr2` |
24 | 17 |
|
25 | 18 | error[E0277]: the trait bound `T: std::clone::Clone` is not satisfied
|
26 | 19 | --> $DIR/defaults-suitability.rs:35:15
|
27 | 20 | |
|
| 21 | +LL | trait Foo<T> { |
| 22 | + | ------------ required by `Foo` |
28 | 23 | LL | type Bar: Clone = Vec<T>;
|
29 | 24 | | ^^^^^ the trait `std::clone::Clone` is not implemented for `T`
|
30 | 25 | |
|
31 | 26 | = help: consider adding a `where T: std::clone::Clone` bound
|
32 | 27 | = note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<T>`
|
33 |
| -note: required by `Foo` |
34 |
| - --> $DIR/defaults-suitability.rs:34:1 |
35 |
| - | |
36 |
| -LL | trait Foo<T> { |
37 |
| - | ^^^^^^^^^^^^ |
38 | 28 |
|
39 | 29 | error[E0277]: the trait bound `(): Foo<Self>` is not satisfied
|
40 | 30 | --> $DIR/defaults-suitability.rs:41:17
|
41 | 31 | |
|
| 32 | +LL | trait Bar: Sized { |
| 33 | + | ---------------- required by `Bar` |
| 34 | +LL | // `(): Foo<Self>` might hold for some possible impls but not all. |
42 | 35 | LL | type Assoc: Foo<Self> = ();
|
43 | 36 | | ^^^^^^^^^ the trait `Foo<Self>` is not implemented for `()`
|
44 |
| - | |
45 |
| -note: required by `Bar` |
46 |
| - --> $DIR/defaults-suitability.rs:39:1 |
47 |
| - | |
48 |
| -LL | trait Bar: Sized { |
49 |
| - | ^^^^^^^^^^^^^^^^ |
50 | 37 |
|
51 | 38 | error[E0277]: the trait bound `NotClone: IsU8<NotClone>` is not satisfied
|
52 | 39 | --> $DIR/defaults-suitability.rs:61:18
|
53 | 40 | |
|
54 |
| -LL | Self::Assoc: IsU8<Self::Assoc>, |
55 |
| - | ^^^^^^^^^^^^^^^^^ the trait `IsU8<NotClone>` is not implemented for `NotClone` |
56 |
| - | |
57 |
| -note: required by `D` |
58 |
| - --> $DIR/defaults-suitability.rs:58:1 |
59 |
| - | |
60 | 41 | LL | / trait D where
|
61 | 42 | LL | | Vec<Self::Assoc>: Clone,
|
62 | 43 | LL | |
|
63 | 44 | LL | | Self::Assoc: IsU8<Self::Assoc>,
|
| 45 | + | | ^^^^^^^^^^^^^^^^^ the trait `IsU8<NotClone>` is not implemented for `NotClone` |
64 | 46 | ... |
|
65 | 47 | LL | | type Assoc = NotClone;
|
66 | 48 | LL | | }
|
67 |
| - | |_^ |
| 49 | + | |_- required by `D` |
68 | 50 |
|
69 | 51 | error[E0277]: the trait bound `bool: IsU8<NotClone>` is not satisfied
|
70 | 52 | --> $DIR/defaults-suitability.rs:63:11
|
71 | 53 | |
|
72 |
| -LL | bool: IsU8<Self::Assoc>, |
73 |
| - | ^^^^^^^^^^^^^^^^^ the trait `IsU8<NotClone>` is not implemented for `bool` |
74 |
| - | |
75 |
| -note: required by `D` |
76 |
| - --> $DIR/defaults-suitability.rs:58:1 |
77 |
| - | |
78 | 54 | LL | / trait D where
|
79 | 55 | LL | | Vec<Self::Assoc>: Clone,
|
80 | 56 | LL | |
|
81 | 57 | LL | | Self::Assoc: IsU8<Self::Assoc>,
|
| 58 | +LL | | |
| 59 | +LL | | bool: IsU8<Self::Assoc>, |
| 60 | + | | ^^^^^^^^^^^^^^^^^ the trait `IsU8<NotClone>` is not implemented for `bool` |
82 | 61 | ... |
|
83 | 62 | LL | | type Assoc = NotClone;
|
84 | 63 | LL | | }
|
85 |
| - | |_^ |
| 64 | + | |_- required by `D` |
86 | 65 |
|
87 | 66 | error[E0277]: the trait bound `NotClone: std::clone::Clone` is not satisfied
|
88 | 67 | --> $DIR/defaults-suitability.rs:59:23
|
89 | 68 | |
|
90 |
| -LL | Vec<Self::Assoc>: Clone, |
91 |
| - | ^^^^^ the trait `std::clone::Clone` is not implemented for `NotClone` |
92 |
| - | |
93 |
| - = note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<NotClone>` |
94 |
| -note: required by `D` |
95 |
| - --> $DIR/defaults-suitability.rs:58:1 |
96 |
| - | |
97 | 69 | LL | / trait D where
|
98 | 70 | LL | | Vec<Self::Assoc>: Clone,
|
| 71 | + | | ^^^^^ the trait `std::clone::Clone` is not implemented for `NotClone` |
99 | 72 | LL | |
|
100 | 73 | LL | | Self::Assoc: IsU8<Self::Assoc>,
|
101 | 74 | ... |
|
102 | 75 | LL | | type Assoc = NotClone;
|
103 | 76 | LL | | }
|
104 |
| - | |_^ |
| 77 | + | |_- required by `D` |
| 78 | + | |
| 79 | + = note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<NotClone>` |
105 | 80 |
|
106 | 81 | error[E0277]: the trait bound `<Self as Foo2<T>>::Baz: std::clone::Clone` is not satisfied
|
107 | 82 | --> $DIR/defaults-suitability.rs:74:15
|
108 | 83 | |
|
| 84 | +LL | trait Foo2<T> { |
| 85 | + | ------------- required by `Foo2` |
109 | 86 | LL | type Bar: Clone = Vec<Self::Baz>;
|
110 | 87 | | ^^^^^ the trait `std::clone::Clone` is not implemented for `<Self as Foo2<T>>::Baz`
|
111 | 88 | |
|
112 | 89 | = help: consider adding a `where <Self as Foo2<T>>::Baz: std::clone::Clone` bound
|
113 | 90 | = note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<<Self as Foo2<T>>::Baz>`
|
114 |
| -note: required by `Foo2` |
115 |
| - --> $DIR/defaults-suitability.rs:73:1 |
116 |
| - | |
117 |
| -LL | trait Foo2<T> { |
118 |
| - | ^^^^^^^^^^^^^ |
119 | 91 |
|
120 | 92 | error[E0277]: the trait bound `<Self as Foo25<T>>::Baz: std::clone::Clone` is not satisfied
|
121 | 93 | --> $DIR/defaults-suitability.rs:83:15
|
122 | 94 | |
|
| 95 | +LL | trait Foo25<T: Clone> { |
| 96 | + | --------------------- required by `Foo25` |
123 | 97 | LL | type Bar: Clone = Vec<Self::Baz>;
|
124 | 98 | | ^^^^^ the trait `std::clone::Clone` is not implemented for `<Self as Foo25<T>>::Baz`
|
125 | 99 | |
|
126 | 100 | = help: consider adding a `where <Self as Foo25<T>>::Baz: std::clone::Clone` bound
|
127 | 101 | = note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<<Self as Foo25<T>>::Baz>`
|
128 |
| -note: required by `Foo25` |
129 |
| - --> $DIR/defaults-suitability.rs:82:1 |
130 |
| - | |
131 |
| -LL | trait Foo25<T: Clone> { |
132 |
| - | ^^^^^^^^^^^^^^^^^^^^^ |
133 | 102 |
|
134 | 103 | error[E0277]: the trait bound `T: std::clone::Clone` is not satisfied
|
135 | 104 | --> $DIR/defaults-suitability.rs:92:16
|
136 | 105 | |
|
137 |
| -LL | Self::Baz: Clone, |
138 |
| - | ^^^^^ the trait `std::clone::Clone` is not implemented for `T` |
139 |
| - | |
140 |
| - = help: consider adding a `where T: std::clone::Clone` bound |
141 |
| -note: required by `Foo3` |
142 |
| - --> $DIR/defaults-suitability.rs:90:1 |
143 |
| - | |
144 | 106 | LL | / trait Foo3<T> where
|
145 | 107 | LL | | Self::Bar: Clone,
|
146 | 108 | LL | | Self::Baz: Clone,
|
| 109 | + | | ^^^^^ the trait `std::clone::Clone` is not implemented for `T` |
147 | 110 | LL | |
|
148 | 111 | ... |
|
149 | 112 | LL | | type Baz = T;
|
150 | 113 | LL | | }
|
151 |
| - | |_^ |
| 114 | + | |_- required by `Foo3` |
| 115 | + | |
| 116 | + = help: consider adding a `where T: std::clone::Clone` bound |
152 | 117 |
|
153 | 118 | error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
154 | 119 | --> $DIR/defaults-suitability.rs:29:5
|
|
0 commit comments