Skip to content

Commit 19185a8

Browse files
committed
Help untagged users discover expecting
1 parent 93377b1 commit 19185a8

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
@@ -70,6 +70,8 @@
7070
Use the untagged enum representation for this enum. See [enum representations]
7171
for details on this representation.
7272

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

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

0 commit comments

Comments
 (0)