File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
@@ -25,17 +25,17 @@ enum NodeKind {
25
25
Element ( ElementData )
26
26
}
27
27
28
- enum NodeData = {
28
+ struct NodeData {
29
29
kind : ~NodeKind
30
- } ;
30
+ }
31
31
32
32
fn main ( ) {
33
33
let mut id = HTMLImageData { image : None } ;
34
34
let ed = ElementData { kind : ~HTMLImageElement ( id) } ;
35
- let n = NodeData ( { kind : ~Element ( ed) } ) ;
35
+ let n = NodeData { kind : ~Element ( ed) } ;
36
36
match n. kind {
37
37
~Element ( ed) => match ed. kind {
38
- ~HTMLImageElement ( d) if d. image . is_some ( ) => { true }
38
+ ~HTMLImageElement ( ref d) if d. image . is_some ( ) => { true }
39
39
} ,
40
40
_ => fail ! ( ~"WAT ") //~ ERROR wat
41
41
} ;
You can’t perform that action at this time.
0 commit comments