2 // `#[derive(Trait)]` works for empty structs/variants with braces or parens.
4 #![feature(rustc_private)]
6 extern crate rustc_serialize;
8 #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash,
9 Default, Debug, RustcEncodable, RustcDecodable)]
12 #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash,
13 Default, Debug, RustcEncodable, RustcDecodable)]
16 #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash,
17 Debug, RustcEncodable, RustcDecodable)]
31 assert_eq!(format!("{:?}", s), "S");
39 assert_eq!(format!("{:?}", z), "Z");
47 assert_eq!(format!("{:?}", e), "V");
55 assert_eq!(format!("{:?}", e), "W");