ruwuma/crates/ruma-events/tests/ui/08-enum-invalid-path.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
289 B
Rust

use ruma_events_macros::event_enum;
event_enum! {
enum State {
"m.not.a.path",
}
}
event_enum! {
enum State {
"not.a.path",
}
}
fn main() {}
#[doc(hidden)]
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct PrivOwnedStr(Box<str>);