Adjust tests to new error message
This commit is contained in:
parent
4b4c6fd434
commit
2234b557bb
7 changed files with 8 additions and 8 deletions
|
@ -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() {}
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -17,7 +17,7 @@ impl Foo {
|
|||
Foo { baz: 0 }.bar();
|
||||
}
|
||||
|
||||
fn bar() { //~ ERROR duplicate associated function
|
||||
fn bar() { //~ ERROR duplicate definitions
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() { }
|
||||
|
|
Loading…
Add table
Reference in a new issue