Skip to content

Commit

Permalink
testsuite: Update rust-lang#3601 test (it's still xfailed)
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Feb 23, 2013
1 parent 82062a6 commit a8cb06e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/compile-fail/issue-3601.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
Expand All @@ -25,17 +25,17 @@ enum NodeKind {
Element(ElementData)
}

enum NodeData = {
struct NodeData {
kind: ~NodeKind
};
}

fn main() {
let mut id = HTMLImageData { image: None };
let ed = ElementData { kind: ~HTMLImageElement(id) };
let n = NodeData({kind : ~Element(ed)});
let n = NodeData {kind : ~Element(ed)};
match n.kind {
~Element(ed) => match ed.kind {
~HTMLImageElement(d) if d.image.is_some() => { true }
~HTMLImageElement(ref d) if d.image.is_some() => { true }
},
_ => fail!(~"WAT") //~ ERROR wat
};
Expand Down

1 comment on commit a8cb06e

@catamorphism
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

Please sign in to comment.