// rustc overflows when compiling this see:
// https://github.com/rust-lang/rust/issues/55779
extern crate serde;

use ruma_events::{StateEventContent, Unsigned};
use ruma_events_macros::Event;

/// State event.
#[derive(Clone, Debug, Event)]
pub struct StateEvent<C: StateEventContent> {
    pub content: C,
    pub state_key: String,
    pub prev_content: Option<C>,
    pub unsigned: Unsigned,
}

fn main() {}

// rustc overflows when compiling this see:
// https://github.com/rust-lang/rust/issues/55779
extern crate serde;

use ruma_events::StateEventContent;
use ruma_events_macros::Event;

/// State event.
#[derive(Clone, Debug, Event)]
pub struct StateEvent<C: StateEventContent> {
    pub content: C,
    pub state_key: String,
    pub prev_content: Option<C>,
}

fn main() {}

--- 
+++ 
@@ -2,7 +2,7 @@
 // https://github.com/rust-lang/rust/issues/55779
 extern crate serde;
 
-use ruma_events::StateEventContent;
+use ruma_events::{StateEventContent, Unsigned};
 use ruma_events_macros::Event;
 
 /// State event.
@@ -11,6 +11,7 @@
     pub content: C,
     pub state_key: String,
     pub prev_content: Option<C>,
+    pub unsigned: Unsigned,
 }
 
 fn main() {}
events: Fix UI test failing with compat feature
