Skip to content

Commit fa38c12

Browse files
committed
test: Fix failing tests. r=rustbot
1 parent 141ef23 commit fa38c12

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/test/compile-fail/issue-2766-a.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
mod stream {
22
#[legacy_exports];
3-
enum stream<T: Send> { send(T, server::stream<T>), }
3+
enum Stream<T: Send> { send(T, server::Stream<T>), }
44
mod server {
55
#[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> {
88
// resolve really should report just one error here.
99
// 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
1111
//~^ ERROR use of undeclared type name
1212
//~^^ ERROR attempt to use a type argument out of scope
1313
//~^^^ ERROR use of undeclared type name
@@ -16,7 +16,7 @@ mod stream {
1616
recv
1717
}
1818
}
19-
type stream<T: Send> = pipes::RecvPacket<stream::stream<T>>;
19+
type Stream<T: Send> = pipes::RecvPacket<stream::Stream<T>>;
2020
}
2121
}
2222

src/test/compile-fail/issue-3099-a.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
enum a { b, c }
22

3-
enum a { d, e } //~ ERROR Duplicate definition of type a
3+
enum a { d, e } //~ ERROR duplicate definition of type a
44

55
fn main() {}

src/test/compile-fail/issue-3099-b.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
mod a {}
33

44
#[legacy_exports]
5-
mod a {} //~ ERROR Duplicate definition of module a
5+
mod a {} //~ ERROR duplicate definition of type a
66

77
fn main() {}

src/test/compile-fail/issue-3099.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ fn a(x: ~str) -> ~str {
22
fmt!("First function with %s", x)
33
}
44

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
66
fmt!("Second function with %s and %s", x, y)
77
}
88

0 commit comments

Comments
 (0)