1 #![feature(box_patterns)]
2 #![feature(box_syntax)]
13 HTMLImageElement(HTMLImageData)
25 let mut id = HTMLImageData { image: None };
26 let ed = ElementData { kind: box ElementKind::HTMLImageElement(id) };
27 let n = NodeData {kind : box NodeKind::Element(ed)};
28 // n.b. span could be better
30 box NodeKind::Element(ed) => match ed.kind { //~ ERROR non-exhaustive patterns
31 box ElementKind::HTMLImageElement(ref d) if d.image.is_some() => { true }