3 #![feature(rustc_private)]
5 extern crate rustc_serialize;
8 // if any of these are implemented without global calls for any
9 // function calls, then being in a submodule will (correctly)
10 // cause errors about unrecognised module `std` (or `extra`)
11 #[derive(PartialEq, PartialOrd, Eq, Ord,
15 RustcEncodable, RustcDecodable)]
16 enum A { A1(usize), A2(isize) }
18 #[derive(PartialEq, PartialOrd, Eq, Ord,
22 RustcEncodable, RustcDecodable)]
23 struct B { x: usize, y: isize }
25 #[derive(PartialEq, PartialOrd, Eq, Ord,
29 RustcEncodable, RustcDecodable)]
30 struct C(usize, isize);