add comment back

This commit is contained in:
Eric Mark Martin 2023-06-28 01:49:12 -04:00
parent fbd1e0252f
commit e79b179412
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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