mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
testsuite: remove incorrect section of 2 test cases. (Also, &const is disappearing.)
Fixes #7304.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user