1
0
Fork 0
ruma/crates/ruma-events/tests/it/ui/12-no-relates_to.stderr
Kévin Commaille 0ff3b2c36f events: Refactor EventContent macro code
Reorganize and improve the documentation of the code.
2025-12-09 11:18:06 +01:00

7 lines
499 B
Text

error: To generate an event content without relation, the event content type needs to be a struct with a field named `relates_to`. Disable this by removing the `without_relation` attribute
--> tests/it/ui/12-no-relates_to.rs:6:48
|
6 | #[derive(Clone, Debug, Deserialize, Serialize, EventContent)]
| ^^^^^^^^^^^^
|
= note: this error originates in the derive macro `EventContent` (in Nightly builds, run with -Z macro-backtrace for more info)