mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-23 04:14:28 +00:00
add comment back
This commit is contained in:
parent
fbd1e0252f
commit
e79b179412
@ -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…
Reference in New Issue
Block a user