File tree Expand file tree Collapse file tree 5 files changed +8
-10
lines changed
branches/dist-snap/src/test Expand file tree Collapse file tree 5 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9
9
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10
- refs/heads/dist-snap: 6a7c714df665ea943da79f96071dd4a1069ec93d
10
+ refs/heads/dist-snap: 793c0a1116af40d8a84941525f148a3d785c3f0c
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change 2
2
#[ crate_type = "lib" ] ;
3
3
4
4
trait to_str {
5
- fn to_str ( ) -> str ;
5
+ fn to_str ( ) -> ~ str ;
6
6
}
7
7
8
- impl of to_str for str {
9
- fn to_str ( ) -> str { self }
8
+ impl of to_str for ~ str {
9
+ fn to_str ( ) -> ~ str { self }
10
10
}
Original file line number Diff line number Diff line change 5
5
import a:: to_str;
6
6
7
7
impl of to_str for int {
8
- fn to_str ( ) -> str { fmt ! { "%?" , self } }
8
+ fn to_str ( ) -> ~ str { fmt ! { "%?" , self } }
9
9
}
Original file line number Diff line number Diff line change 6
6
import a:: to_str;
7
7
8
8
impl of to_str for bool {
9
- fn to_str ( ) -> str { fmt ! { "%b" , self } }
9
+ fn to_str ( ) -> ~ str { fmt ! { "%b" , self } }
10
10
}
Original file line number Diff line number Diff line change 1
- // xfail-test
2
1
// aux-build:issue_2242_a.rs
3
2
// aux-build:issue_2242_b.rs
4
3
// aux-build:issue_2242_c.rs
7
6
use b;
8
7
use c;
9
8
10
- import b:: to_str;
11
- import c:: to_str;
9
+ import a:: to_str;
12
10
13
11
fn main ( ) {
14
- io:: println ( "foo" . to_str ( ) ) ;
12
+ io:: println ( ( ~ "foo") . to_str ( ) ) ;
15
13
io:: println ( 1 . to_str ( ) ) ;
16
14
io:: println ( true . to_str ( ) ) ;
17
15
}
You can’t perform that action at this time.
0 commit comments