We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbd1e02 commit e79b179Copy full SHA for e79b179
tests/ui/pattern/usefulness/issue-3601.rs
@@ -25,6 +25,7 @@ fn main() {
25
let ed = ElementData { kind: Box::new(ElementKind::HTMLImageElement(id)) };
26
let n = NodeData { kind: Box::new(NodeKind::Element(ed)) };
27
28
+ // n.b. span could be better
29
match n.kind {
30
box NodeKind::Element(ed) => match ed.kind {
31
//~^ ERROR non-exhaustive patterns
tests/ui/pattern/usefulness/issue-3601.stderr
@@ -1,5 +1,5 @@
1
error[E0004]: non-exhaustive patterns: `box _` not covered
2
- --> $DIR/issue-3601.rs:29:44
+ --> $DIR/issue-3601.rs:30:44
3
|
4
LL | box NodeKind::Element(ed) => match ed.kind {
5
| ^^^^^^^ pattern `box _` not covered
0 commit comments