Now that core exports "option" as a synonym for option::t, search-and- replace option::t with option. The only place that still refers to option::t are the modules in libcore that use option, because fixing this requires a new snapshot (forthcoming).
10 lines
124 B
Rust
10 lines
124 B
Rust
use std;
|
|
import option;
|
|
|
|
fn f<T>(&o: option<T>) {
|
|
assert o == option::none;
|
|
}
|
|
|
|
fn main() {
|
|
f::<int>(option::none);
|
|
} |