|
| 1 | +error[E0277]: the trait bound `NoImpls: Serialize` is not satisfied |
| 2 | + --> tests/ui/on-unimplemented/struct_field.rs:8:9 |
| 3 | + | |
| 4 | +8 | x2: NoImpls, |
| 5 | + | ^^^^^^^ the trait `Serialize` is not implemented for `NoImpls` |
| 6 | + | |
| 7 | + = note: for local types consider adding `#[derive(serde::Serialize)]` to your `NoImpls` type |
| 8 | + = note: for types from other crates check whether the crate offers a `serde` feature flag |
| 9 | + = help: the following other types implement trait `Serialize`: |
| 10 | + &'a T |
| 11 | + &'a mut T |
| 12 | + () |
| 13 | + (T,) |
| 14 | + (T0, T1) |
| 15 | + (T0, T1, T2) |
| 16 | + (T0, T1, T2, T3) |
| 17 | + (T0, T1, T2, T3, T4) |
| 18 | + and $N others |
| 19 | +note: required by a bound in `_::_serde::ser::SerializeStruct::serialize_field` |
| 20 | + --> $WORKSPACE/serde/src/ser/mod.rs |
| 21 | + | |
| 22 | + | fn serialize_field<T>(&mut self, key: &'static str, value: &T) -> Result<(), Self::Error> |
| 23 | + | --------------- required by a bound in this associated function |
| 24 | + | where |
| 25 | + | T: ?Sized + Serialize; |
| 26 | + | ^^^^^^^^^ required by this bound in `SerializeStruct::serialize_field` |
| 27 | + |
| 28 | +error[E0277]: the trait bound `NoImpls: Deserialize<'_>` is not satisfied |
| 29 | + --> tests/ui/on-unimplemented/struct_field.rs:8:9 |
| 30 | + | |
| 31 | +8 | x2: NoImpls, |
| 32 | + | ^^^^^^^ the trait `Deserialize<'_>` is not implemented for `NoImpls` |
| 33 | + | |
| 34 | + = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `NoImpls` type |
| 35 | + = note: for types from other crates check whether the crate offers a `serde` feature flag |
| 36 | + = help: the following other types implement trait `Deserialize<'de>`: |
| 37 | + &'a Path |
| 38 | + &'a [u8] |
| 39 | + &'a str |
| 40 | + () |
| 41 | + (T,) |
| 42 | + (T0, T1) |
| 43 | + (T0, T1, T2) |
| 44 | + (T0, T1, T2, T3) |
| 45 | + and $N others |
| 46 | +note: required by a bound in `next_element` |
| 47 | + --> $WORKSPACE/serde/src/de/mod.rs |
| 48 | + | |
| 49 | + | fn next_element<T>(&mut self) -> Result<Option<T>, Self::Error> |
| 50 | + | ------------ required by a bound in this associated function |
| 51 | + | where |
| 52 | + | T: Deserialize<'de>, |
| 53 | + | ^^^^^^^^^^^^^^^^ required by this bound in `SeqAccess::next_element` |
| 54 | + |
| 55 | +error[E0277]: the trait bound `NoImpls: Deserialize<'_>` is not satisfied |
| 56 | + --> tests/ui/on-unimplemented/struct_field.rs:8:9 |
| 57 | + | |
| 58 | +8 | x2: NoImpls, |
| 59 | + | ^^^^^^^ the trait `Deserialize<'_>` is not implemented for `NoImpls` |
| 60 | + | |
| 61 | + = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `NoImpls` type |
| 62 | + = note: for types from other crates check whether the crate offers a `serde` feature flag |
| 63 | + = help: the following other types implement trait `Deserialize<'de>`: |
| 64 | + &'a Path |
| 65 | + &'a [u8] |
| 66 | + &'a str |
| 67 | + () |
| 68 | + (T,) |
| 69 | + (T0, T1) |
| 70 | + (T0, T1, T2) |
| 71 | + (T0, T1, T2, T3) |
| 72 | + and $N others |
| 73 | +note: required by a bound in `next_value` |
| 74 | + --> $WORKSPACE/serde/src/de/mod.rs |
| 75 | + | |
| 76 | + | fn next_value<V>(&mut self) -> Result<V, Self::Error> |
| 77 | + | ---------- required by a bound in this associated function |
| 78 | + | where |
| 79 | + | V: Deserialize<'de>, |
| 80 | + | ^^^^^^^^^^^^^^^^ required by this bound in `MapAccess::next_value` |
| 81 | + |
| 82 | +error[E0277]: the trait bound `NoImpls: Deserialize<'_>` is not satisfied |
| 83 | + --> tests/ui/on-unimplemented/struct_field.rs:5:21 |
| 84 | + | |
| 85 | +5 | #[derive(Serialize, Deserialize)] |
| 86 | + | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `NoImpls` |
| 87 | + | |
| 88 | + = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `NoImpls` type |
| 89 | + = note: for types from other crates check whether the crate offers a `serde` feature flag |
| 90 | + = help: the following other types implement trait `Deserialize<'de>`: |
| 91 | + &'a Path |
| 92 | + &'a [u8] |
| 93 | + &'a str |
| 94 | + () |
| 95 | + (T,) |
| 96 | + (T0, T1) |
| 97 | + (T0, T1, T2) |
| 98 | + (T0, T1, T2, T3) |
| 99 | + and $N others |
| 100 | +note: required by a bound in `_::_serde::__private::de::missing_field` |
| 101 | + --> $WORKSPACE/serde/src/private/de.rs |
| 102 | + | |
| 103 | + | pub fn missing_field<'de, V, E>(field: &'static str) -> Result<V, E> |
| 104 | + | ------------- required by a bound in this function |
| 105 | + | where |
| 106 | + | V: Deserialize<'de>, |
| 107 | + | ^^^^^^^^^^^^^^^^ required by this bound in `missing_field` |
| 108 | + = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 109 | + |
| 110 | +error[E0277]: the trait bound `NoImpls: Deserialize<'_>` is not satisfied |
| 111 | + --> tests/ui/on-unimplemented/struct_field.rs:5:21 |
| 112 | + | |
| 113 | +5 | #[derive(Serialize, Deserialize)] |
| 114 | + | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `NoImpls`, which is required by `InPlaceSeed<'_, NoImpls>: DeserializeSeed<'_>` |
| 115 | + | |
| 116 | + = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `NoImpls` type |
| 117 | + = note: for types from other crates check whether the crate offers a `serde` feature flag |
| 118 | + = help: the following other types implement trait `Deserialize<'de>`: |
| 119 | + &'a Path |
| 120 | + &'a [u8] |
| 121 | + &'a str |
| 122 | + () |
| 123 | + (T,) |
| 124 | + (T0, T1) |
| 125 | + (T0, T1, T2) |
| 126 | + (T0, T1, T2, T3) |
| 127 | + and $N others |
| 128 | + = note: required for `InPlaceSeed<'_, NoImpls>` to implement `DeserializeSeed<'_>` |
| 129 | +note: required by a bound in `next_element_seed` |
| 130 | + --> $WORKSPACE/serde/src/de/mod.rs |
| 131 | + | |
| 132 | + | fn next_element_seed<T>(&mut self, seed: T) -> Result<Option<T::Value>, Self::Error> |
| 133 | + | ----------------- required by a bound in this associated function |
| 134 | + | where |
| 135 | + | T: DeserializeSeed<'de>; |
| 136 | + | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `SeqAccess::next_element_seed` |
| 137 | + = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 138 | + |
| 139 | +error[E0277]: the trait bound `NoImpls: Deserialize<'_>` is not satisfied |
| 140 | + --> tests/ui/on-unimplemented/struct_field.rs:5:21 |
| 141 | + | |
| 142 | +5 | #[derive(Serialize, Deserialize)] |
| 143 | + | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `NoImpls`, which is required by `InPlaceSeed<'_, NoImpls>: DeserializeSeed<'_>` |
| 144 | + | |
| 145 | + = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `NoImpls` type |
| 146 | + = note: for types from other crates check whether the crate offers a `serde` feature flag |
| 147 | + = help: the following other types implement trait `Deserialize<'de>`: |
| 148 | + &'a Path |
| 149 | + &'a [u8] |
| 150 | + &'a str |
| 151 | + () |
| 152 | + (T,) |
| 153 | + (T0, T1) |
| 154 | + (T0, T1, T2) |
| 155 | + (T0, T1, T2, T3) |
| 156 | + and $N others |
| 157 | + = note: required for `InPlaceSeed<'_, NoImpls>` to implement `DeserializeSeed<'_>` |
| 158 | +note: required by a bound in `next_value_seed` |
| 159 | + --> $WORKSPACE/serde/src/de/mod.rs |
| 160 | + | |
| 161 | + | fn next_value_seed<V>(&mut self, seed: V) -> Result<V::Value, Self::Error> |
| 162 | + | --------------- required by a bound in this associated function |
| 163 | + | where |
| 164 | + | V: DeserializeSeed<'de>; |
| 165 | + | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `MapAccess::next_value_seed` |
| 166 | + = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) |
0 commit comments