add comment back
This commit is contained in:
parent
fbd1e0252f
commit
e79b179412
2 changed files with 2 additions and 1 deletions
|
@ -25,6 +25,7 @@ fn main() {
|
|||
let ed = ElementData { kind: Box::new(ElementKind::HTMLImageElement(id)) };
|
||||
let n = NodeData { kind: Box::new(NodeKind::Element(ed)) };
|
||||
|
||||
// n.b. span could be better
|
||||
match n.kind {
|
||||
box NodeKind::Element(ed) => match ed.kind {
|
||||
//~^ ERROR non-exhaustive patterns
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error[E0004]: non-exhaustive patterns: `box _` not covered
|
||||
--> $DIR/issue-3601.rs:29:44
|
||||
--> $DIR/issue-3601.rs:30:44
|
||||
|
|
||||
LL | box NodeKind::Element(ed) => match ed.kind {
|
||||
| ^^^^^^^ pattern `box _` not covered
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue