10 lines
163 B
Rust
10 lines
163 B
Rust
|
|
|
|
fn id[T](&T t) -> T { ret t; }
|
|
|
|
fn main() {
|
|
auto expected = @100;
|
|
auto actual = id[@int](expected);
|
|
log *actual;
|
|
assert (*expected == *actual);
|
|
} |