|
| 1 | +error[E0277]: the trait bound `NotClone: std::clone::Clone` is not satisfied |
| 2 | + --> $DIR/defaults-suitability.rs:17:14 |
| 3 | + | |
| 4 | +LL | type Ty: Clone = NotClone; |
| 5 | + | ^^^^^ 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 | + |
| 13 | +error[E0277]: the trait bound `NotClone: std::clone::Clone` is not satisfied |
| 14 | + --> $DIR/defaults-suitability.rs:22:27 |
| 15 | + | |
| 16 | +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 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 24 | + |
| 25 | +error[E0277]: the trait bound `T: std::clone::Clone` is not satisfied |
| 26 | + --> $DIR/defaults-suitability.rs:35:15 |
| 27 | + | |
| 28 | +LL | type Bar: Clone = Vec<T>; |
| 29 | + | ^^^^^ the trait `std::clone::Clone` is not implemented for `T` |
| 30 | + | |
| 31 | + = help: consider adding a `where T: std::clone::Clone` bound |
| 32 | + = 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 | + |
| 39 | +error[E0277]: the trait bound `(): Foo<Self>` is not satisfied |
| 40 | + --> $DIR/defaults-suitability.rs:41:17 |
| 41 | + | |
| 42 | +LL | type Assoc: Foo<Self> = (); |
| 43 | + | ^^^^^^^^^ 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 | + |
| 51 | +error[E0277]: the trait bound `NotClone: IsU8<NotClone>` is not satisfied |
| 52 | + --> $DIR/defaults-suitability.rs:61:18 |
| 53 | + | |
| 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 | +LL | / trait D where |
| 61 | +LL | | Vec<Self::Assoc>: Clone, |
| 62 | +LL | | |
| 63 | +LL | | Self::Assoc: IsU8<Self::Assoc>, |
| 64 | +... | |
| 65 | +LL | | type Assoc = NotClone; |
| 66 | +LL | | } |
| 67 | + | |_^ |
| 68 | + |
| 69 | +error[E0277]: the trait bound `bool: IsU8<NotClone>` is not satisfied |
| 70 | + --> $DIR/defaults-suitability.rs:63:11 |
| 71 | + | |
| 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 | +LL | / trait D where |
| 79 | +LL | | Vec<Self::Assoc>: Clone, |
| 80 | +LL | | |
| 81 | +LL | | Self::Assoc: IsU8<Self::Assoc>, |
| 82 | +... | |
| 83 | +LL | | type Assoc = NotClone; |
| 84 | +LL | | } |
| 85 | + | |_^ |
| 86 | + |
| 87 | +error[E0277]: the trait bound `NotClone: std::clone::Clone` is not satisfied |
| 88 | + --> $DIR/defaults-suitability.rs:59:23 |
| 89 | + | |
| 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 | +LL | / trait D where |
| 98 | +LL | | Vec<Self::Assoc>: Clone, |
| 99 | +LL | | |
| 100 | +LL | | Self::Assoc: IsU8<Self::Assoc>, |
| 101 | +... | |
| 102 | +LL | | type Assoc = NotClone; |
| 103 | +LL | | } |
| 104 | + | |_^ |
| 105 | + |
| 106 | +error[E0277]: the trait bound `<Self as Foo2<T>>::Baz: std::clone::Clone` is not satisfied |
| 107 | + --> $DIR/defaults-suitability.rs:70:29 |
| 108 | + | |
| 109 | +LL | <Self as Foo2<T>>::Bar: Clone, |
| 110 | + | ^^^^^ the trait `std::clone::Clone` is not implemented for `<Self as Foo2<T>>::Baz` |
| 111 | + | |
| 112 | + = help: consider adding a `where <Self as Foo2<T>>::Baz: std::clone::Clone` bound |
| 113 | + = 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:69:1 |
| 116 | + | |
| 117 | +LL | / trait Foo2<T> where |
| 118 | +LL | | <Self as Foo2<T>>::Bar: Clone, |
| 119 | +LL | | |
| 120 | +LL | | { |
| 121 | +LL | | type Bar = Vec<Self::Baz>; |
| 122 | +LL | | type Baz = T; |
| 123 | +LL | | } |
| 124 | + | |_^ |
| 125 | + |
| 126 | +error[E0277]: the trait bound `<Self as Foo3<T>>::Baz: std::clone::Clone` is not satisfied |
| 127 | + --> $DIR/defaults-suitability.rs:78:29 |
| 128 | + | |
| 129 | +LL | <Self as Foo3<T>>::Bar: Clone, |
| 130 | + | ^^^^^ the trait `std::clone::Clone` is not implemented for `<Self as Foo3<T>>::Baz` |
| 131 | + | |
| 132 | + = help: consider adding a `where <Self as Foo3<T>>::Baz: std::clone::Clone` bound |
| 133 | + = note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<<Self as Foo3<T>>::Baz>` |
| 134 | +note: required by `Foo3` |
| 135 | + --> $DIR/defaults-suitability.rs:77:1 |
| 136 | + | |
| 137 | +LL | / trait Foo3<T: Clone> where |
| 138 | +LL | | <Self as Foo3<T>>::Bar: Clone, |
| 139 | +LL | | |
| 140 | +LL | | { |
| 141 | +LL | | type Bar = Vec<Self::Baz>; |
| 142 | +LL | | type Baz = T; |
| 143 | +LL | | } |
| 144 | + | |_^ |
| 145 | + |
| 146 | +error[E0277]: the trait bound `T: std::clone::Clone` is not satisfied |
| 147 | + --> $DIR/defaults-suitability.rs:89:15 |
| 148 | + | |
| 149 | +LL | type Baz: Clone = T; |
| 150 | + | ^^^^^ the trait `std::clone::Clone` is not implemented for `T` |
| 151 | + | |
| 152 | + = help: consider adding a `where T: std::clone::Clone` bound |
| 153 | +note: required by `Foo4` |
| 154 | + --> $DIR/defaults-suitability.rs:85:1 |
| 155 | + | |
| 156 | +LL | / trait Foo4<T> where |
| 157 | +LL | | <Self as Foo4<T>>::Bar: Clone, |
| 158 | +LL | | { |
| 159 | +LL | | type Bar = Vec<Self::Baz>; |
| 160 | +LL | | type Baz: Clone = T; |
| 161 | +LL | | |
| 162 | +LL | | } |
| 163 | + | |_^ |
| 164 | + |
| 165 | +error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
| 166 | + --> $DIR/defaults-suitability.rs:29:5 |
| 167 | + | |
| 168 | +LL | type Ty = Vec<[u8]>; |
| 169 | + | ^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
| 170 | + | |
| 171 | + = help: the trait `std::marker::Sized` is not implemented for `[u8]` |
| 172 | + = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> |
| 173 | + = note: required by `std::vec::Vec` |
| 174 | + |
| 175 | +error: aborting due to 11 previous errors |
| 176 | + |
| 177 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments