10 lines
141 B
Rust
10 lines
141 B
Rust
|
use std;
|
||
|
import std::option;
|
||
|
|
||
|
fn f<@T>(&o: mutable option::t<T>) {
|
||
|
assert o == option::none;
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
f::<int>(option::none);
|
||
|
}
|