]>
Commit | Line | Data |
---|---|---|
416331ca XL |
1 | // run-pass |
2 | ||
b7449926 | 3 | #![feature(rustc_private)] |
1a4d82fc | 4 | |
3dfed10e | 5 | extern crate rustc_macros; |
f035d41b | 6 | extern crate rustc_serialize; |
1a4d82fc | 7 | |
970d7e83 | 8 | mod submod { |
3dfed10e XL |
9 | use rustc_macros::{Decodable, Encodable}; |
10 | ||
970d7e83 LB |
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`) | |
3dfed10e XL |
14 | #[derive(PartialEq, PartialOrd, Eq, Ord, Hash, Clone, Debug, Encodable, Decodable)] |
15 | enum A { | |
16 | A1(usize), | |
17 | A2(isize), | |
18 | } | |
970d7e83 | 19 | |
3dfed10e XL |
20 | #[derive(PartialEq, PartialOrd, Eq, Ord, Hash, Clone, Debug, Encodable, Decodable)] |
21 | struct B { | |
22 | x: usize, | |
23 | y: isize, | |
24 | } | |
970d7e83 | 25 | |
3dfed10e | 26 | #[derive(PartialEq, PartialOrd, Eq, Ord, Hash, Clone, Debug, Encodable, Decodable)] |
c34b1796 | 27 | struct C(usize, isize); |
970d7e83 LB |
28 | } |
29 | ||
1a4d82fc | 30 | pub fn main() {} |