1 #![feature(rustc_private)]
3 extern crate serialize;
4 use serialize as rustc_serialize;
7 // if any of these are implemented without global calls for any
8 // function calls, then being in a submodule will (correctly)
9 // cause errors about unrecognised module `std` (or `extra`)
10 #[derive(PartialEq, PartialOrd, Eq, Ord,
14 RustcEncodable, RustcDecodable)]
15 enum A { A1(usize), A2(isize) }
17 #[derive(PartialEq, PartialOrd, Eq, Ord,
21 RustcEncodable, RustcDecodable)]
22 struct B { x: usize, y: isize }
24 #[derive(PartialEq, PartialOrd, Eq, Ord,
28 RustcEncodable, RustcDecodable)]
29 struct C(usize, isize);