ruwuma/crates/ruma-events/tests/ui/07-enum-sanity-check.rs
Jonas Platte ee977b48f0
Make the inner type of _Custom enum variants unusable
The variant itself would be private if possible, this is the solution
closest to that.
2022-01-13 11:38:48 +01:00

20 lines
395 B
Rust

use ruma_events_macros::event_enum;
event_enum! {
/// Any global account data event.
enum GlobalAccountData {
"m.direct",
#[cfg(test)]
"m.ignored_user_list",
"m.push_rules",
#[cfg(any())]
"m.ruma_test",
}
}
fn main() {}
#[doc(hidden)]
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct PrivOwnedStr(Box<str>);