1 // Copyright 2014 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(rand, rustc_private)]
13 extern crate serialize
;
16 // if any of these are implemented without global calls for any
17 // function calls, then being in a submodule will (correctly)
18 // cause errors about unrecognised module `std` (or `extra`)
19 #[derive(PartialEq, PartialOrd, Eq, Ord,
23 Encodable
, Decodable
)]
24 enum A { A1(usize), A2(isize) }
26 #[derive(PartialEq, PartialOrd, Eq, Ord,
30 Encodable
, Decodable
)]
31 struct B { x: usize, y: isize }
33 #[derive(PartialEq, PartialOrd, Eq, Ord,
37 Encodable
, Decodable
)]
38 struct C(usize, isize);