blob: 1109a82b8d58054c53431a8b9bdc7f1dd9e9548a [file] [log] [blame] [edit]
//@ run-pass
struct Foo {
x: isize,
}
trait Stuff {
fn printme(&self);
}
impl Stuff for Foo {
fn printme(&self) {
println!("{}", self.x);
}
}
pub fn main() {
let x = Foo { x: 3 };
x.printme();
}