Adjust tests to new error message

This commit is contained in:
Aaron Turon 2016-03-09 08:57:53 -08:00
parent 4b4c6fd434
commit 2234b557bb
7 changed files with 8 additions and 8 deletions

View file

@ -14,7 +14,7 @@ struct Foo;
impl Foo {
const bar: bool = true;
fn bar() {} //~ ERROR duplicate associated function
fn bar() {} //~ ERROR duplicate definitions
}
fn main() {}

View file

@ -20,7 +20,7 @@ struct Baz;
impl Foo for Baz {
type Bar = i16;
type Bar = u16; //~ ERROR duplicate associated type
type Bar = u16; //~ ERROR duplicate definitions
}
fn main() {

View file

@ -19,9 +19,9 @@ trait Foo {
impl Foo for () {
type Ty = ();
type Ty = usize; //~ ERROR duplicate associated type
type Ty = usize; //~ ERROR duplicate definitions
const BAR: u32 = 7;
const BAR: u32 = 8; //~ ERROR duplicate associated constant
const BAR: u32 = 8; //~ ERROR duplicate definitions
}
fn main() {

View file

@ -11,7 +11,7 @@
struct Foo;
impl Foo {
fn orange(&self){}
fn orange(&self){} //~ ERROR duplicate method
fn orange(&self){} //~ ERROR duplicate definitions
}
fn main() {}

View file

@ -17,7 +17,7 @@ impl Foo {
Foo { baz: 0 }.bar();
}
fn bar() { //~ ERROR duplicate associated function
fn bar() { //~ ERROR duplicate definitions
}
}

View file

@ -18,7 +18,7 @@ trait Bar {
impl Bar for Foo {
fn bar(&self) -> isize {1}
fn bar(&self) -> isize {2} //~ ERROR duplicate method
fn bar(&self) -> isize {2} //~ ERROR duplicate definitions
}
fn main() {

View file

@ -29,7 +29,7 @@ impl S {
// Cause an error. It shouldn't have any macro backtrace frames.
fn bar(&self) { }
fn bar(&self) { } //~ ERROR duplicate method
fn bar(&self) { } //~ ERROR duplicate definitions
}
fn main() { }