File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed 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