]> git.lizzy.rs Git - rust.git/commitdiff
testsuite: remove incorrect section of 2 test cases. (Also, &const is disappearing.)
authorHuon Wilson <dbau.pp+github@gmail.com>
Mon, 5 Aug 2013 09:53:42 +0000 (19:53 +1000)
committerHuon Wilson <dbau.pp+github@gmail.com>
Wed, 7 Aug 2013 13:17:52 +0000 (23:17 +1000)
Fixes #7304.

src/test/run-pass/coerce-reborrow-imm-vec-arg.rs
src/test/run-pass/coerce-reborrow-imm-vec-rcvr.rs

index 7fb01006844af5a7ee43b7e0c33b4865da993c51..b31f0eab2e2239494bef52c7d1464ecfd0a982ad 100644 (file)
@@ -12,10 +12,4 @@ fn sum_imm(y: &[int]) -> int {
     sum(y)
 }
 
-/* FIXME #7304
-fn sum_const(y: &const [int]) -> int {
-    sum(y)
-}
-*/
-
 pub fn main() {}
index 590cd8250208a7fbb221d477c589b4de5cc49644..8a271a4d65f3c06f5ac728c3c24464bf00cef97b 100644 (file)
@@ -1,9 +1,3 @@
-/* FIXME #7302
-fn foo(v: &const [uint]) -> ~[uint] {
-    v.to_owned()
-}
-*/
-
 fn bar(v: &mut [uint]) -> ~[uint] {
     v.to_owned()
 }
@@ -14,7 +8,6 @@ fn bip(v: &[uint]) -> ~[uint] {
 
 pub fn main() {
     let mut the_vec = ~[1u, 2, 3, 100];
-//    assert_eq!(the_vec.clone(), foo(the_vec));
     assert_eq!(the_vec.clone(), bar(the_vec));
     assert_eq!(the_vec.clone(), bip(the_vec));
 }