testsuite: remove incorrect section of 2 test cases. (Also, &const is disappearing.)
Fixes #7304.
This commit is contained in:
parent
1016e8b8f7
commit
e5fb4c4359
@ -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() {}
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user