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

10 lines
141 B
Rust
Raw Normal View History

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