]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-types/defaults-suitability.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / associated-types / defaults-suitability.stderr
CommitLineData
74b04a01
XL
1error[E0277]: the trait bound `NotClone: std::clone::Clone` is not satisfied
2 --> $DIR/defaults-suitability.rs:15:14
3 |
4LL | trait Tr {
5 | -------- required by `Tr`
6LL | type Ty: Clone = NotClone;
7 | ^^^^^ the trait `std::clone::Clone` is not implemented for `NotClone`
8
9error[E0277]: the trait bound `NotClone: std::clone::Clone` is not satisfied
10 --> $DIR/defaults-suitability.rs:20:27
11 |
12LL | trait Tr2 where Self::Ty: Clone {
13 | --------------------------^^^^^
14 | | |
15 | | the trait `std::clone::Clone` is not implemented for `NotClone`
16 | required by `Tr2`
17
18error[E0277]: the trait bound `T: std::clone::Clone` is not satisfied
19 --> $DIR/defaults-suitability.rs:33:15
20 |
21LL | trait Foo<T> {
22 | ------------ required by `Foo`
23LL | type Bar: Clone = Vec<T>;
24 | ^^^^^ the trait `std::clone::Clone` is not implemented for `T`
25 |
74b04a01 26 = note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<T>`
ba9703b0
XL
27help: consider restricting type parameter `T`
28 |
29LL | trait Foo<T: std::clone::Clone> {
30 | ^^^^^^^^^^^^^^^^^^^
74b04a01
XL
31
32error[E0277]: the trait bound `(): Foo<Self>` is not satisfied
33 --> $DIR/defaults-suitability.rs:39:17
34 |
35LL | trait Bar: Sized {
36 | ---------------- required by `Bar`
37LL | // `(): Foo<Self>` might hold for some possible impls but not all.
38LL | type Assoc: Foo<Self> = ();
39 | ^^^^^^^^^ the trait `Foo<Self>` is not implemented for `()`
40
41error[E0277]: the trait bound `NotClone: IsU8<NotClone>` is not satisfied
42 --> $DIR/defaults-suitability.rs:59:18
43 |
44LL | / trait D where
45LL | | Vec<Self::Assoc>: Clone,
46LL | |
47LL | | Self::Assoc: IsU8<Self::Assoc>,
48 | | ^^^^^^^^^^^^^^^^^ the trait `IsU8<NotClone>` is not implemented for `NotClone`
49... |
50LL | | type Assoc = NotClone;
51LL | | }
52 | |_- required by `D`
53
54error[E0277]: the trait bound `bool: IsU8<NotClone>` is not satisfied
55 --> $DIR/defaults-suitability.rs:61:11
56 |
57LL | / trait D where
58LL | | Vec<Self::Assoc>: Clone,
59LL | |
60LL | | Self::Assoc: IsU8<Self::Assoc>,
61LL | |
62LL | | bool: IsU8<Self::Assoc>,
63 | | ^^^^^^^^^^^^^^^^^ the trait `IsU8<NotClone>` is not implemented for `bool`
64... |
65LL | | type Assoc = NotClone;
66LL | | }
67 | |_- required by `D`
68
69error[E0277]: the trait bound `NotClone: std::clone::Clone` is not satisfied
70 --> $DIR/defaults-suitability.rs:57:23
71 |
72LL | / trait D where
73LL | | Vec<Self::Assoc>: Clone,
74 | | ^^^^^ the trait `std::clone::Clone` is not implemented for `NotClone`
75LL | |
76LL | | Self::Assoc: IsU8<Self::Assoc>,
77... |
78LL | | type Assoc = NotClone;
79LL | | }
80 | |_- required by `D`
81 |
82 = note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<NotClone>`
83
84error[E0277]: the trait bound `<Self as Foo2<T>>::Baz: std::clone::Clone` is not satisfied
85 --> $DIR/defaults-suitability.rs:72:15
86 |
87LL | trait Foo2<T> {
88 | -------------- help: consider further restricting the associated type: `where <Self as Foo2<T>>::Baz: std::clone::Clone`
89 | |
90 | required by `Foo2`
91LL | type Bar: Clone = Vec<Self::Baz>;
92 | ^^^^^ the trait `std::clone::Clone` is not implemented for `<Self as Foo2<T>>::Baz`
93 |
94 = note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<<Self as Foo2<T>>::Baz>`
95
96error[E0277]: the trait bound `<Self as Foo25<T>>::Baz: std::clone::Clone` is not satisfied
97 --> $DIR/defaults-suitability.rs:81:15
98 |
99LL | trait Foo25<T: Clone> {
100 | ---------------------- help: consider further restricting the associated type: `where <Self as Foo25<T>>::Baz: std::clone::Clone`
101 | |
102 | required by `Foo25`
103LL | type Bar: Clone = Vec<Self::Baz>;
104 | ^^^^^ the trait `std::clone::Clone` is not implemented for `<Self as Foo25<T>>::Baz`
105 |
106 = note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<<Self as Foo25<T>>::Baz>`
107
108error[E0277]: the trait bound `T: std::clone::Clone` is not satisfied
109 --> $DIR/defaults-suitability.rs:90:16
110 |
111LL | / trait Foo3<T> where
112LL | | Self::Bar: Clone,
113LL | | Self::Baz: Clone,
114 | | ^^^^^ the trait `std::clone::Clone` is not implemented for `T`
115LL | |
116... |
117LL | | type Baz = T;
118LL | | }
119 | |_- required by `Foo3`
120 |
ba9703b0 121help: consider further restricting type parameter `T`
74b04a01 122 |
ba9703b0
XL
123LL | Self::Baz: Clone, T: std::clone::Clone
124 | ^^^^^^^^^^^^^^^^^^^^^^
74b04a01
XL
125
126error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
127 --> $DIR/defaults-suitability.rs:27:5
128 |
129LL | type Ty = Vec<[u8]>;
130 | ^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
ba9703b0
XL
131 |
132 ::: $SRC_DIR/liballoc/vec.rs:LL:COL
133 |
134LL | pub struct Vec<T> {
135 | - required by this bound in `std::vec::Vec`
74b04a01
XL
136 |
137 = help: the trait `std::marker::Sized` is not implemented for `[u8]`
138 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
74b04a01
XL
139
140error: aborting due to 11 previous errors
141
142For more information about this error, try `rustc --explain E0277`.