2018-08-21 17:38:21 -05:00
|
|
|
struct AStruct {
|
|
|
|
A: u32,
|
|
|
|
B: u32,
|
|
|
|
C: u32,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Something for AStruct {
|
|
|
|
fn a_func() {
|
|
|
|
match a_val {
|
|
|
|
ContextualParseError::InvalidMediaRule(ref err) => {
|
|
|
|
let err: &CStr = match err.kind {
|
|
|
|
ParseErrorKind::Custom(StyleParseErrorKind::MediaQueryExpectedFeatureName(
|
2019-07-30 00:32:38 -05:00
|
|
|
..,
|
2020-10-27 17:52:02 -05:00
|
|
|
)) => {
|
|
|
|
cstr!("PEMQExpectedFeatureName")
|
|
|
|
}
|
2018-08-21 17:38:21 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|