ruwuma/tests/ui/02-no-event-type.stderr
Ragotzy.devin 7ec162678e
Implement first trybuild tests
and use a dedicated InvalidEvent constructor fn in EventContent derives
2020-06-07 01:11:13 +02:00

8 lines
403 B
Plaintext

error: no event type attribute found, add `#[ruma_events(type = "any.room.event")]` below the event content derive
--> $DIR/02-no-event-type.rs:4:44
|
4 | #[derive(Clone, Debug, Serialize, FromRaw, StateEventContent)]
| ^^^^^^^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)