11error[E0277]: the trait bound `NotClone: Clone` is not satisfied
2- --> $DIR/defaults-suitability.rs:13:5
2+ --> $DIR/defaults-suitability.rs:13:22
33 |
44LL | type Ty: Clone = NotClone;
5- | ^^^^^^^^^-----^^^^^^^^^^^^
6- | | |
7- | | required by this bound in `Tr::Ty`
8- | the trait `Clone` is not implemented for `NotClone`
5+ | ----- ^^^^^^^^ the trait `Clone` is not implemented for `NotClone`
6+ | |
7+ | required by this bound in `Tr::Ty`
98
109error[E0277]: the trait bound `NotClone: Clone` is not satisfied
11- --> $DIR/defaults-suitability.rs:22:5
10+ --> $DIR/defaults-suitability.rs:22:15
1211 |
1312LL | Self::Ty: Clone,
1413 | ----- required by this bound in `Tr2::Ty`
1514LL | {
1615LL | type Ty = NotClone;
17- | ^^^^^--^^^^^^^^^^^^
18- | | |
19- | | required by a bound in this
20- | the trait `Clone` is not implemented for `NotClone`
16+ | -- ^^^^^^^^ the trait `Clone` is not implemented for `NotClone`
17+ | |
18+ | required by a bound in this
2119
2220error[E0277]: the trait bound `T: Clone` is not satisfied
23- --> $DIR/defaults-suitability.rs:28:5
21+ --> $DIR/defaults-suitability.rs:28:23
2422 |
2523LL | type Bar: Clone = Vec<T>;
26- | ^^^^^^^^^^-----^^^^^^^^^^
27- | | |
28- | | required by this bound in `Foo::Bar`
29- | the trait `Clone` is not implemented for `T`
24+ | ----- ^^^^^^ the trait `Clone` is not implemented for `T`
25+ | |
26+ | required by this bound in `Foo::Bar`
3027 |
3128 = note: required because of the requirements on the impl of `Clone` for `Vec<T>`
3229help: consider restricting type parameter `T`
@@ -35,34 +32,31 @@ LL | trait Foo<T: std::clone::Clone> {
3532 | ^^^^^^^^^^^^^^^^^^^
3633
3734error[E0277]: the trait bound `(): Foo<Self>` is not satisfied
38- --> $DIR/defaults-suitability.rs:34:5
35+ --> $DIR/defaults-suitability.rs:34:29
3936 |
4037LL | type Assoc: Foo<Self> = ();
41- | ^^^^^^^^^^^^---------^^^^^^
42- | | |
43- | | required by this bound in `Bar::Assoc`
44- | the trait `Foo<Self>` is not implemented for `()`
38+ | --------- ^^ the trait `Foo<Self>` is not implemented for `()`
39+ | |
40+ | required by this bound in `Bar::Assoc`
4541
4642error[E0277]: the trait bound `NotClone: IsU8<NotClone>` is not satisfied
47- --> $DIR/defaults-suitability.rs:56:5
43+ --> $DIR/defaults-suitability.rs:56:18
4844 |
4945LL | Self::Assoc: IsU8<Self::Assoc>,
5046 | ----------------- required by this bound in `D::Assoc`
5147...
5248LL | type Assoc = NotClone;
53- | ^^^^^-----^^^^^^^^^^^^
54- | | |
55- | | required by a bound in this
56- | the trait `IsU8<NotClone>` is not implemented for `NotClone`
49+ | ----- ^^^^^^^^ the trait `IsU8<NotClone>` is not implemented for `NotClone`
50+ | |
51+ | required by a bound in this
5752
5853error[E0277]: the trait bound `<Self as Foo2<T>>::Baz: Clone` is not satisfied
59- --> $DIR/defaults-suitability.rs:65:5
54+ --> $DIR/defaults-suitability.rs:65:23
6055 |
6156LL | type Bar: Clone = Vec<Self::Baz>;
62- | ^^^^^^^^^^-----^^^^^^^^^^^^^^^^^^
63- | | |
64- | | required by this bound in `Foo2::Bar`
65- | the trait `Clone` is not implemented for `<Self as Foo2<T>>::Baz`
57+ | ----- ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `<Self as Foo2<T>>::Baz`
58+ | |
59+ | required by this bound in `Foo2::Bar`
6660 |
6761 = note: required because of the requirements on the impl of `Clone` for `Vec<<Self as Foo2<T>>::Baz>`
6862help: consider further restricting the associated type
@@ -71,13 +65,12 @@ LL | trait Foo2<T> where <Self as Foo2<T>>::Baz: Clone {
7165 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7266
7367error[E0277]: the trait bound `<Self as Foo25<T>>::Baz: Clone` is not satisfied
74- --> $DIR/defaults-suitability.rs:74:5
68+ --> $DIR/defaults-suitability.rs:74:23
7569 |
7670LL | type Bar: Clone = Vec<Self::Baz>;
77- | ^^^^^^^^^^-----^^^^^^^^^^^^^^^^^^
78- | | |
79- | | required by this bound in `Foo25::Bar`
80- | the trait `Clone` is not implemented for `<Self as Foo25<T>>::Baz`
71+ | ----- ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `<Self as Foo25<T>>::Baz`
72+ | |
73+ | required by this bound in `Foo25::Bar`
8174 |
8275 = note: required because of the requirements on the impl of `Clone` for `Vec<<Self as Foo25<T>>::Baz>`
8376help: consider further restricting the associated type
@@ -86,16 +79,15 @@ LL | trait Foo25<T: Clone> where <Self as Foo25<T>>::Baz: Clone {
8679 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8780
8881error[E0277]: the trait bound `T: Clone` is not satisfied
89- --> $DIR/defaults-suitability.rs:87:5
82+ --> $DIR/defaults-suitability.rs:87:16
9083 |
9184LL | Self::Baz: Clone,
9285 | ----- required by this bound in `Foo3::Baz`
9386...
9487LL | type Baz = T;
95- | ^^^^^---^^^^^
96- | | |
97- | | required by a bound in this
98- | the trait `Clone` is not implemented for `T`
88+ | --- ^ the trait `Clone` is not implemented for `T`
89+ | |
90+ | required by a bound in this
9991 |
10092help: consider further restricting type parameter `T`
10193 |
0 commit comments