]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/coerce-reborrow-imm-vec-rcvr.rs
testsuite: remove incorrect section of 2 test cases. (Also, &const is disappearing.)
[rust.git] / src / test / run-pass / coerce-reborrow-imm-vec-rcvr.rs
1 fn bar(v: &mut [uint]) -> ~[uint] {
2     v.to_owned()
3 }
4
5 fn bip(v: &[uint]) -> ~[uint] {
6     v.to_owned()
7 }
8
9 pub fn main() {
10     let mut the_vec = ~[1u, 2, 3, 100];
11     assert_eq!(the_vec.clone(), bar(the_vec));
12     assert_eq!(the_vec.clone(), bip(the_vec));
13 }