11 lines
181 B
Rust
11 lines
181 B
Rust
|
|
|
|
fn id<T: copy>(t: T) -> T { return t; }
|
|
|
|
fn main() {
|
|
let expected = @100;
|
|
let actual = id::<@int>(expected);
|
|
log(debug, *actual);
|
|
assert (*expected == *actual);
|
|
}
|