// Note: impl on a slice impl foo/& for &int { fn get() -> int { ret *self; } } fn main() { /* let x = @mut 6; let y = x.get(); assert y == 6; */ let x = @6; let y = x.get(); #debug["y=%d", y]; assert y == 6; let x = ~mut 6; let y = x.get(); #debug["y=%d", y]; assert y == 6; let x = ~6; let y = x.get(); #debug["y=%d", y]; assert y == 6; let x = &6; let y = x.get(); #debug["y=%d", y]; assert y == 6; }