Skip to content

Commit

Permalink
add comment back
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmarkmartin committed Jun 28, 2023
1 parent fbd1e02 commit e79b179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/ui/pattern/usefulness/issue-3601.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/pattern/usefulness/issue-3601.stderr
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e79b179

Please sign in to comment.