1 // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 #[feature(managed_boxes)];
13 // Exercises a bug in the shape code that was exposed
14 // on x86_64: when there is a enum embedded in an
15 // interior record which is then itself interior to
16 // something else, shape calculations were off.
20 //hack (as opposed to option), to make `span` compile
29 expanded_from: opt_span,
47 type path = Spanned<Path_>;
48 type ty = Spanned<ty_>;
57 let sp: Span = Span {lo: 57451u, hi: 57542u, expanded_from: os_none};
58 let t: @ty = @Spanned { data: 3u, span: sp };
59 let p_: Path_ = Path_ { global: true, idents: vec!(~"hi"), types: Vec<t> };
60 let p: path = Spanned { data: p_, span: sp };
61 let x = X { sp: sp, path: p };
62 println!("{:?}", x.path.clone());
63 println!("{:?}", x.clone());