Skip to content

Commit 8378757

Browse files
committed
Remove obsolete fixed-length string test
1 parent 8a8fbe3 commit 8378757

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

src/test/compile-fail/estr-subtyping.rs

+7-13
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
11
fn wants_box(x: @str) { }
22
fn wants_uniq(x: ~str) { }
3-
fn wants_three(x: str/3) { }
3+
fn wants_slice(x: &str) { }
44

55
fn has_box(x: @str) {
66
wants_box(x);
77
wants_uniq(x); //~ ERROR str storage differs: expected ~ but found @
8-
wants_three(x); //~ ERROR str storage differs: expected 3 but found @
8+
wants_slice(x);
99
}
1010

1111
fn has_uniq(x: ~str) {
1212
wants_box(x); //~ ERROR str storage differs: expected @ but found ~
1313
wants_uniq(x);
14-
wants_three(x); //~ ERROR str storage differs: expected 3 but found ~
14+
wants_slice(x);
1515
}
1616

17-
fn has_three(x: str/3) {
18-
wants_box(x); //~ ERROR str storage differs: expected @ but found 3
19-
wants_uniq(x); //~ ERROR str storage differs: expected ~ but found 3
20-
wants_three(x);
21-
}
22-
23-
fn has_four(x: str/4) {
24-
wants_box(x); //~ ERROR str storage differs: expected @ but found 4
25-
wants_uniq(x); //~ ERROR str storage differs: expected ~ but found 4
26-
wants_three(x); //~ ERROR str storage differs: expected 3 but found 4
17+
fn has_slice(x: &str) {
18+
wants_box(x); //~ ERROR str storage differs: expected @ but found &
19+
wants_uniq(x); //~ ERROR str storage differs: expected ~ but found &
20+
wants_slice(x);
2721
}
2822

2923
fn main() {

0 commit comments

Comments
 (0)