File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
trunk/src/test/compile-fail Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 141ef23aa714c9572da6fd616e7bdb96ea40ea07
2
+ refs/heads/master: fa38c1290119c1ceca77db38c0075f7412d296d7
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
5
5
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
Original file line number Diff line number Diff line change 1
1
mod stream {
2
2
#[ legacy_exports] ;
3
- enum stream < T : Send > { send( T , server:: stream < T > ) , }
3
+ enum Stream < T : Send > { send( T , server:: Stream < T > ) , }
4
4
mod server {
5
5
#[ legacy_exports] ;
6
- impl < T : Send > stream < T > {
7
- fn recv ( ) -> extern fn ( +v : stream < T > ) -> stream:: stream < T > {
6
+ impl < T : Send > Stream < T > {
7
+ fn recv ( ) -> extern fn ( +v : Stream < T > ) -> stream:: Stream < T > {
8
8
// resolve really should report just one error here.
9
9
// Change the test case when it changes.
10
- fn recv ( +pipe : stream < T > ) -> stream:: stream < T > { //~ ERROR attempt to use a type argument out of scope
10
+ fn recv ( +pipe : Stream < T > ) -> stream:: Stream < T > { //~ ERROR attempt to use a type argument out of scope
11
11
//~^ ERROR use of undeclared type name
12
12
//~^^ ERROR attempt to use a type argument out of scope
13
13
//~^^^ ERROR use of undeclared type name
@@ -16,7 +16,7 @@ mod stream {
16
16
recv
17
17
}
18
18
}
19
- type stream < T : Send > = pipes:: RecvPacket < stream:: stream < T > > ;
19
+ type Stream < T : Send > = pipes:: RecvPacket < stream:: Stream < T > > ;
20
20
}
21
21
}
22
22
Original file line number Diff line number Diff line change 1
1
enum a { b, c }
2
2
3
- enum a { d, e } //~ ERROR Duplicate definition of type a
3
+ enum a { d, e } //~ ERROR duplicate definition of type a
4
4
5
5
fn main ( ) { }
Original file line number Diff line number Diff line change 2
2
mod a { }
3
3
4
4
#[ legacy_exports]
5
- mod a { } //~ ERROR Duplicate definition of module a
5
+ mod a { } //~ ERROR duplicate definition of type a
6
6
7
7
fn main ( ) { }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ fn a(x: ~str) -> ~str {
2
2
fmt ! ( "First function with %s" , x)
3
3
}
4
4
5
- fn a ( x : ~str , y : ~str ) -> ~str { //~ ERROR Duplicate definition of value a
5
+ fn a ( x : ~str , y : ~str ) -> ~str { //~ ERROR duplicate definition of value a
6
6
fmt ! ( "Second function with %s and %s" , x, y)
7
7
}
8
8
You can’t perform that action at this time.
0 commit comments