1 // `#[derive(Trait)]` works for empty structs/variants with braces or parens.
3 #![feature(rustc_private)]
5 extern crate serialize as rustc_serialize;
7 #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash,
8 Default, Debug, RustcEncodable, RustcDecodable)]
11 #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash,
12 Default, Debug, RustcEncodable, RustcDecodable)]
15 #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash,
16 Debug, RustcEncodable, RustcDecodable)]
30 assert_eq!(format!("{:?}", s), "S");
38 assert_eq!(format!("{:?}", z), "Z");
46 assert_eq!(format!("{:?}", e), "V");
54 assert_eq!(format!("{:?}", e), "W");