rust/src/test/run-pass/issue-511.rs
2011-10-25 15:56:55 +02:00

10 lines
132 B
Rust

use std;
import std::option;
fn f<T>(&o: option::t<T>) {
assert o == option::none;
}
fn main() {
f::<int>(option::none);
}