type clam = { chowder: &int };

impl clam for clam {
    fn get_chowder() -> &self.int { ret self.chowder; }
}

fn main() {
    let clam = { chowder: &3 };
    log(debug, *clam.get_chowder());
}


Add a test case for self regions and typeclass implementations
test: Add a test case for self regions and typeclass implementations
