9 lines
187 B
Rust
9 lines
187 B
Rust
fn magic(+x: {a: @int}) { log(debug, x); }
|
|
fn magic2(+x: @int) { log(debug, x); }
|
|
|
|
fn main() {
|
|
let a = {a: @10}, b = @10;
|
|
magic(a); magic({a: @20});
|
|
magic2(b); magic2(@20);
|
|
}
|