mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
parent
dbd2ee015a
commit
cee7b4caee
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 New Issue
Block a user