2011-09-22 22:50:12 -07:00
|
|
|
use std;
|
2011-12-13 16:25:51 -08:00
|
|
|
import option;
|
2011-09-22 22:50:12 -07:00
|
|
|
|
2011-10-25 15:56:55 +02:00
|
|
|
fn f<T>(&o: option::t<T>) {
|
2011-09-22 22:50:12 -07:00
|
|
|
assert o == option::none;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
f::<int>(option::none);
|
|
|
|
}
|