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
6
6
| |
7
7
| required by a bound introduced by this call
8
8
|
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
9
11
= help: the following other types implement trait `Serialize`:
10
12
&'a T
11
13
&'a mut T
@@ -31,6 +33,8 @@ error[E0277]: the trait bound `MyStruct: Deserialize<'_>` is not satisfied
31
33
22 | let _: MyStruct = from_str("");
32
34
| ^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `MyStruct`
33
35
|
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
34
38
= help: the following other types implement trait `Deserialize<'de>`:
35
39
&'a Path
36
40
&'a [u8]
You can’t perform that action at this time.
0 commit comments