Skip to content

Commit 97cf40a

Browse files
committed
Help untagged users discover expecting
1 parent ce2f4ea commit 97cf40a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_src/container-attrs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
Use the untagged enum representation for this enum. See [enum
5757
representations](enum-representations.md) for details on this representation.
5858

59+
When no variant matches, the error may be uninformative which can be improved with [`serde(expecting)`](#expecting).
60+
5961
- ##### `#[serde(bound = "T: MyTrait")]` {#bound}
6062

6163
Where-clause for the `Serialize` and `Deserialize` impls. This replaces any

0 commit comments

Comments
 (0)