Another attempt on class-attribute-1.rs.
This commit is contained in:
parent
2489baf82e
commit
64de480d46
@ -5,7 +5,7 @@ struct cat {
|
||||
new(name: ~str) { self.name = name; }
|
||||
#[cat_dropper]
|
||||
drop { error! {"%s landed on hir feet",self.name }; }
|
||||
let name: ~str;
|
||||
name: ~str;
|
||||
}
|
||||
|
||||
fn main() { let _kitty = cat(~"Spotty"); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user