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