1
1
error[E0277]: the trait bound `NotClone: Clone` is not satisfied
2
- --> $DIR/defaults-suitability.rs:13 :22
2
+ --> $DIR/defaults-suitability.rs:16 :22
3
3
|
4
4
LL | type Ty: Clone = NotClone;
5
5
| ^^^^^^^^ the trait `Clone` is not implemented for `NotClone`
6
6
|
7
7
note: required by a bound in `Tr::Ty`
8
- --> $DIR/defaults-suitability.rs:13 :14
8
+ --> $DIR/defaults-suitability.rs:16 :14
9
9
|
10
10
LL | type Ty: Clone = NotClone;
11
11
| ^^^^^ required by this bound in `Tr::Ty`
@@ -16,13 +16,13 @@ LL | struct NotClone;
16
16
|
17
17
18
18
error[E0277]: the trait bound `NotClone: Clone` is not satisfied
19
- --> $DIR/defaults-suitability.rs:22 :15
19
+ --> $DIR/defaults-suitability.rs:25 :15
20
20
|
21
21
LL | type Ty = NotClone;
22
22
| ^^^^^^^^ the trait `Clone` is not implemented for `NotClone`
23
23
|
24
24
note: required by a bound in `Tr2::Ty`
25
- --> $DIR/defaults-suitability.rs:20 :15
25
+ --> $DIR/defaults-suitability.rs:23 :15
26
26
|
27
27
LL | Self::Ty: Clone,
28
28
| ^^^^^ required by this bound in `Tr2::Ty`
@@ -36,14 +36,14 @@ LL | struct NotClone;
36
36
|
37
37
38
38
error[E0277]: the trait bound `T: Clone` is not satisfied
39
- --> $DIR/defaults-suitability.rs:28 :23
39
+ --> $DIR/defaults-suitability.rs:31 :23
40
40
|
41
41
LL | type Bar: Clone = Vec<T>;
42
42
| ^^^^^^ the trait `Clone` is not implemented for `T`, which is required by `Vec<T>: Clone`
43
43
|
44
44
= note: required for `Vec<T>` to implement `Clone`
45
45
note: required by a bound in `Foo::Bar`
46
- --> $DIR/defaults-suitability.rs:28 :15
46
+ --> $DIR/defaults-suitability.rs:31 :15
47
47
|
48
48
LL | type Bar: Clone = Vec<T>;
49
49
| ^^^^^ required by this bound in `Foo::Bar`
@@ -53,30 +53,30 @@ LL | trait Foo<T: std::clone::Clone> {
53
53
| +++++++++++++++++++
54
54
55
55
error[E0277]: the trait bound `(): Foo<Self>` is not satisfied
56
- --> $DIR/defaults-suitability.rs:34 :29
56
+ --> $DIR/defaults-suitability.rs:37 :29
57
57
|
58
58
LL | type Assoc: Foo<Self> = ();
59
59
| ^^ the trait `Foo<Self>` is not implemented for `()`
60
60
|
61
61
help: this trait has no implementations, consider adding one
62
- --> $DIR/defaults-suitability.rs:27 :1
62
+ --> $DIR/defaults-suitability.rs:30 :1
63
63
|
64
64
LL | trait Foo<T> {
65
65
| ^^^^^^^^^^^^
66
66
note: required by a bound in `Bar::Assoc`
67
- --> $DIR/defaults-suitability.rs:34 :17
67
+ --> $DIR/defaults-suitability.rs:37 :17
68
68
|
69
69
LL | type Assoc: Foo<Self> = ();
70
70
| ^^^^^^^^^ required by this bound in `Bar::Assoc`
71
71
72
72
error[E0277]: the trait bound `NotClone: IsU8<NotClone>` is not satisfied
73
- --> $DIR/defaults-suitability.rs:56 :18
73
+ --> $DIR/defaults-suitability.rs:59 :18
74
74
|
75
75
LL | type Assoc = NotClone;
76
76
| ^^^^^^^^ the trait `IsU8<NotClone>` is not implemented for `NotClone`
77
77
|
78
78
note: required by a bound in `D::Assoc`
79
- --> $DIR/defaults-suitability.rs:53 :18
79
+ --> $DIR/defaults-suitability.rs:56 :18
80
80
|
81
81
LL | Self::Assoc: IsU8<Self::Assoc>,
82
82
| ^^^^^^^^^^^^^^^^^ required by this bound in `D::Assoc`
@@ -85,14 +85,14 @@ LL | type Assoc = NotClone;
85
85
| ----- required by a bound in this associated type
86
86
87
87
error[E0277]: the trait bound `<Self as Foo2<T>>::Baz: Clone` is not satisfied
88
- --> $DIR/defaults-suitability.rs:65 :23
88
+ --> $DIR/defaults-suitability.rs:68 :23
89
89
|
90
90
LL | type Bar: Clone = Vec<Self::Baz>;
91
91
| ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `<Self as Foo2<T>>::Baz`, which is required by `Vec<<Self as Foo2<T>>::Baz>: Clone`
92
92
|
93
93
= note: required for `Vec<<Self as Foo2<T>>::Baz>` to implement `Clone`
94
94
note: required by a bound in `Foo2::Bar`
95
- --> $DIR/defaults-suitability.rs:65 :15
95
+ --> $DIR/defaults-suitability.rs:68 :15
96
96
|
97
97
LL | type Bar: Clone = Vec<Self::Baz>;
98
98
| ^^^^^ required by this bound in `Foo2::Bar`
@@ -102,14 +102,14 @@ LL | trait Foo2<T> where <Self as Foo2<T>>::Baz: Clone {
102
102
| +++++++++++++++++++++++++++++++++++
103
103
104
104
error[E0277]: the trait bound `<Self as Foo25<T>>::Baz: Clone` is not satisfied
105
- --> $DIR/defaults-suitability.rs:74 :23
105
+ --> $DIR/defaults-suitability.rs:77 :23
106
106
|
107
107
LL | type Bar: Clone = Vec<Self::Baz>;
108
108
| ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `<Self as Foo25<T>>::Baz`, which is required by `Vec<<Self as Foo25<T>>::Baz>: Clone`
109
109
|
110
110
= note: required for `Vec<<Self as Foo25<T>>::Baz>` to implement `Clone`
111
111
note: required by a bound in `Foo25::Bar`
112
- --> $DIR/defaults-suitability.rs:74 :15
112
+ --> $DIR/defaults-suitability.rs:77 :15
113
113
|
114
114
LL | type Bar: Clone = Vec<Self::Baz>;
115
115
| ^^^^^ required by this bound in `Foo25::Bar`
@@ -119,13 +119,13 @@ LL | trait Foo25<T: Clone> where <Self as Foo25<T>>::Baz: Clone {
119
119
| ++++++++++++++++++++++++++++++++++++
120
120
121
121
error[E0277]: the trait bound `T: Clone` is not satisfied
122
- --> $DIR/defaults-suitability.rs:87 :16
122
+ --> $DIR/defaults-suitability.rs:90 :16
123
123
|
124
124
LL | type Baz = T;
125
125
| ^ the trait `Clone` is not implemented for `T`
126
126
|
127
127
note: required by a bound in `Foo3::Baz`
128
- --> $DIR/defaults-suitability.rs:84 :16
128
+ --> $DIR/defaults-suitability.rs:87 :16
129
129
|
130
130
LL | Self::Baz: Clone,
131
131
| ^^^^^ required by this bound in `Foo3::Baz`
0 commit comments