Skip to content

Commit a8cb06e

Browse files
committed
testsuite: Update rust-lang#3601 test (it's still xfailed)
1 parent 82062a6 commit a8cb06e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/compile-fail/issue-3601.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -25,17 +25,17 @@ enum NodeKind {
2525
Element(ElementData)
2626
}
2727

28-
enum NodeData = {
28+
struct NodeData {
2929
kind: ~NodeKind
30-
};
30+
}
3131

3232
fn main() {
3333
let mut id = HTMLImageData { image: None };
3434
let ed = ElementData { kind: ~HTMLImageElement(id) };
35-
let n = NodeData({kind : ~Element(ed)});
35+
let n = NodeData {kind : ~Element(ed)};
3636
match n.kind {
3737
~Element(ed) => match ed.kind {
38-
~HTMLImageElement(d) if d.image.is_some() => { true }
38+
~HTMLImageElement(ref d) if d.image.is_some() => { true }
3939
},
4040
_ => fail!(~"WAT") //~ ERROR wat
4141
};

0 commit comments

Comments
 (0)