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)
15 lines
216 B
Rust
15 lines
216 B
Rust
enum int_wrapper/& {
|
|
int_wrapper_ctor(&int)
|
|
}
|
|
|
|
fn main() {
|
|
let x = 3;
|
|
let y = int_wrapper_ctor(&x);
|
|
let mut z : ∫
|
|
alt y {
|
|
int_wrapper_ctor(zz) { z = zz; }
|
|
}
|
|
log(debug, *z);
|
|
}
|
|
|