From a8cb06e06584e763defb542022826a759ae4942b Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Fri, 22 Feb 2013 22:15:11 -0800 Subject: [PATCH] testsuite: Update #3601 test (it's still xfailed) --- src/test/compile-fail/issue-3601.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/compile-fail/issue-3601.rs b/src/test/compile-fail/issue-3601.rs index 3dd070b44a04c..600789d3d12b2 100644 --- a/src/test/compile-fail/issue-3601.rs +++ b/src/test/compile-fail/issue-3601.rs @@ -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. // @@ -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 };