1 // aux-build:custom-derive-plugin-attr.rs
4 #![feature(plugin, rustc_attrs)]
5 #![plugin(custom_derive_plugin_attr)]
8 fn total_sum(&self) -> isize;
11 impl TotalSum for isize {
12 fn total_sum(&self) -> isize {
19 impl TotalSum for Seven {
20 fn total_sum(&self) -> isize {
25 #[rustc_derive_TotalSum]
34 #[rustc_derive_TotalSum]
44 impl TotalSum for NaN {
45 fn total_sum(&self) -> isize {
63 assert_eq!(v.total_sum(), 99);