testsuite: remove incorrect section of 2 test cases. (Also, &const is disappearing.)

Fixes #7304.
This commit is contained in:
Huon Wilson 2013-08-05 19:53:42 +10:00
parent 1016e8b8f7
commit e5fb4c4359
2 changed files with 0 additions and 13 deletions

View 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() {}

View 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));
}