From c91cc629d592f6e43499ebb7565d6d05d92a62dd Mon Sep 17 00:00:00 2001
From: Fabian Bornhofen <fbornhofen@google.com>
Date: Tue, 10 Jan 2023 16:46:57 +0100
Subject: [PATCH] Add speaker notes for variant-payloads.md

---
 src/enums/variant-payloads.md | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/enums/variant-payloads.md b/src/enums/variant-payloads.md
index 056ea580..84c0aad0 100644
--- a/src/enums/variant-payloads.md
+++ b/src/enums/variant-payloads.md
@@ -6,3 +6,11 @@ You can define richer enums where the variants carry data. You can then use the
 ```rust,editable
 {{#include ../../third_party/rust-by-example/webevent.rs}}
 ```
+
+<details>
+
+* In the above example, accessing the `char` in `KeyPress`, or `x` and `y` in `Click` only works within a `match` statement.
+* `match` inspects a hidden discriminant field in the `enum`.
+* `WebEvent::Click { ... }` is not exactly the same as `WebEvent::Click(Click)` with a top level `struct Click { ... }`. The inlined version cannot implement traits, for example.
+
+</details>