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