3 #![feature(rustc_private)]
5 extern crate rustc_macros;
6 extern crate rustc_serialize;
9 use rustc_macros::{Decodable, Encodable};
11 // if any of these are implemented without global calls for any
12 // function calls, then being in a submodule will (correctly)
13 // cause errors about unrecognised module `std` (or `extra`)
14 #[derive(PartialEq, PartialOrd, Eq, Ord, Hash, Clone, Debug, Encodable, Decodable)]
20 #[derive(PartialEq, PartialOrd, Eq, Ord, Hash, Clone, Debug, Encodable, Decodable)]
26 #[derive(PartialEq, PartialOrd, Eq, Ord, Hash, Clone, Debug, Encodable, Decodable)]
27 struct C(usize, isize);