Skip to content

Commit e5fb4c4

Browse files
committed
testsuite: remove incorrect section of 2 test cases. (Also, &const is disappearing.)
Fixes #7304.
1 parent 1016e8b commit e5fb4c4

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,4 @@ fn sum_imm(y: &[int]) -> int {
1212
sum(y)
1313
}
1414

15-
/* FIXME #7304
16-
fn sum_const(y: &const [int]) -> int {
17-
sum(y)
18-
}
19-
*/
20-
2115
pub fn main() {}
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/* FIXME #7302
2-
fn foo(v: &const [uint]) -> ~[uint] {
3-
v.to_owned()
4-
}
5-
*/
6-
71
fn bar(v: &mut [uint]) -> ~[uint] {
82
v.to_owned()
93
}
@@ -14,7 +8,6 @@ fn bip(v: &[uint]) -> ~[uint] {
148

159
pub fn main() {
1610
let mut the_vec = ~[1u, 2, 3, 100];
17-
// assert_eq!(the_vec.clone(), foo(the_vec));
1811
assert_eq!(the_vec.clone(), bar(the_vec));
1912
assert_eq!(the_vec.clone(), bip(the_vec));
2013
}

0 commit comments

Comments
 (0)