Skip to content

Commit e79b179

Browse files
add comment back
1 parent fbd1e02 commit e79b179

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/ui/pattern/usefulness/issue-3601.rs

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ fn main() {
2525
let ed = ElementData { kind: Box::new(ElementKind::HTMLImageElement(id)) };
2626
let n = NodeData { kind: Box::new(NodeKind::Element(ed)) };
2727

28+
// n.b. span could be better
2829
match n.kind {
2930
box NodeKind::Element(ed) => match ed.kind {
3031
//~^ ERROR non-exhaustive patterns

tests/ui/pattern/usefulness/issue-3601.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0004]: non-exhaustive patterns: `box _` not covered
2-
--> $DIR/issue-3601.rs:29:44
2+
--> $DIR/issue-3601.rs:30:44
33
|
44
LL | box NodeKind::Element(ed) => match ed.kind {
55
| ^^^^^^^ pattern `box _` not covered

0 commit comments

Comments
 (0)