2012-04-11 23:45:18 -05:00
|
|
|
fn main() {
|
2012-06-25 22:00:46 -05:00
|
|
|
assert [1u, 3u]/~.to_vec() == [1u, 3u]/~;
|
|
|
|
let e: [uint]/~ = []/~;
|
|
|
|
assert e.to_vec() == []/~;
|
|
|
|
assert none::<uint>.to_vec() == []/~;
|
|
|
|
assert some(1u).to_vec() == [1u]/~;
|
|
|
|
assert some(2u).to_vec() == [2u]/~;
|
2012-04-11 23:45:18 -05:00
|
|
|
}
|