rust/src/test/run-pass/issue-511.rs

10 lines
133 B
Rust
Raw Normal View History

2011-09-23 00:50:12 -05:00
use std;
import std::option;
fn f<@T>(&o: option::t<T>) {
2011-09-23 00:50:12 -05:00
assert o == option::none;
}
fn main() {
f::<int>(option::none);
}