File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed
branches/snap-stage3/src/test/compile-fail Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 8a8fbe3dce7120e476edfa7ca4c0a40671b61cb6
4
+ refs/heads/snap-stage3: 837875711a8724784e401ee5ef2fecad006a0ca6
5
5
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change 1
1
fn wants_box ( x : @str ) { }
2
2
fn wants_uniq ( x : ~str ) { }
3
- fn wants_three ( x : str / 3 ) { }
3
+ fn wants_slice ( x : & str ) { }
4
4
5
5
fn has_box ( x : @str ) {
6
6
wants_box ( x) ;
7
7
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) ;
9
9
}
10
10
11
11
fn has_uniq ( x : ~str ) {
12
12
wants_box ( x) ; //~ ERROR str storage differs: expected @ but found ~
13
13
wants_uniq ( x) ;
14
- wants_three ( x) ; //~ ERROR str storage differs: expected 3 but found ~
14
+ wants_slice ( x) ;
15
15
}
16
16
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) ;
27
21
}
28
22
29
23
fn main ( ) {
You can’t perform that action at this time.
0 commit comments