mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
20 lines
476 B
Rust
20 lines
476 B
Rust
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(..)) => {
|
|
cstr!("PEMQExpectedFeatureName")
|
|
},
|
|
};
|
|
}
|
|
};
|
|
}
|
|
}
|