825fd1808e
- paths can now take region parameters, replacing the dirty hack I was doing before of abusing vstores. vstores are now a bit of a hack though. - fix various small bugs: - we never checked that iface types were compatible when casting to an iface with `as` - we allowed nonsense like int<int> - and more! (actually that may be it)
13 lines
224 B
Rust
13 lines
224 B
Rust
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());
|
|
clam.get_chowder();
|
|
}
|
|
|