1 // Copyright 2013 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 // aux-build:xcrate_unit_struct.rs
13 extern mod xcrate_unit_struct;
17 static s1: xcrate_unit_struct::Struct = xcrate_unit_struct::Struct;
18 static s2: xcrate_unit_struct::Unit = xcrate_unit_struct::Unit;
19 static s3: xcrate_unit_struct::Unit =
20 xcrate_unit_struct::Argument(xcrate_unit_struct::Struct);
21 static s4: xcrate_unit_struct::Unit = xcrate_unit_struct::Argument(s1);
23 fn f1(_: xcrate_unit_struct::Struct) {}
24 fn f2(_: xcrate_unit_struct::Unit) {}
27 f1(xcrate_unit_struct::Struct);
28 f2(xcrate_unit_struct::Unit);
29 f2(xcrate_unit_struct::Argument(xcrate_unit_struct::Struct));