parent
dbd2ee015a
commit
cee7b4caee
1 changed files with 10 additions and 0 deletions
10
src/test/run-pass/issue-511.rs
Normal file
10
src/test/run-pass/issue-511.rs
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
use std;
|
||||||
|
import std::option;
|
||||||
|
|
||||||
|
fn f<@T>(&o: mutable option::t<T>) {
|
||||||
|
assert o == option::none;
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
f::<int>(option::none);
|
||||||
|
}
|
Loading…
Reference in a new issue