]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/class-attributes-1.rs
Another attempt on class-attribute-1.rs.
[rust.git] / src / test / run-pass / class-attributes-1.rs
1 // pp-exact - Make sure we actually print the attributes
2
3 struct cat {
4     #[cat_maker]
5     new(name: ~str) { self.name = name; }
6     #[cat_dropper]
7     drop { error! {"%s landed on hir feet",self.name }; }
8     name: ~str;
9 }
10
11 fn main() { let _kitty = cat(~"Spotty"); }