File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ error[E0277]: the trait bound `MyStruct: Serialize` is not satisfied
66 | |
77 | required by a bound introduced by this call
88 |
9+ = note: for local types consider adding `#[derive(serde::Serialize)]` to your `MyStruct` type
10+ = note: for types from other crates check whether the crate offers a `serde` feature flag
911 = help: the following other types implement trait `Serialize`:
1012 &'a T
1113 &'a mut T
@@ -31,6 +33,8 @@ error[E0277]: the trait bound `MyStruct: Deserialize<'_>` is not satisfied
313322 | let _: MyStruct = from_str("");
3234 | ^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `MyStruct`
3335 |
36+ = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `MyStruct` type
37+ = note: for types from other crates check whether the crate offers a `serde` feature flag
3438 = help: the following other types implement trait `Deserialize<'de>`:
3539 &'a Path
3640 &'a [u8]
You can’t perform that action at this time.
0 commit comments