rust/src/test/auxiliary/explicit_self_xcrate.rs

18 lines
189 B
Rust
Raw Normal View History

pub trait Foo {
#[inline(always)]
fn f(&self);
}
pub struct Bar {
x: ~str
}
impl Bar : Foo {
#[inline(always)]
fn f(&self) {
io::println((*self).x);
}
}