From 2234b557bbd049f6dcdde3c27b89939baa9a0573 Mon Sep 17 00:00:00 2001 From: Aaron Turon Date: Wed, 9 Mar 2016 08:57:53 -0800 Subject: [PATCH] Adjust tests to new error message --- src/test/compile-fail/associated-item-duplicate-names-2.rs | 2 +- src/test/compile-fail/associated-item-duplicate-names-3.rs | 2 +- src/test/compile-fail/associated-item-duplicate-names.rs | 4 ++-- src/test/compile-fail/impl-duplicate-methods.rs | 2 +- src/test/compile-fail/issue-4265.rs | 2 +- src/test/compile-fail/issue-8153.rs | 2 +- src/test/compile-fail/method-macro-backtrace.rs | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/test/compile-fail/associated-item-duplicate-names-2.rs b/src/test/compile-fail/associated-item-duplicate-names-2.rs index 6a7eaecae7f42..ab903591fbb06 100644 --- a/src/test/compile-fail/associated-item-duplicate-names-2.rs +++ b/src/test/compile-fail/associated-item-duplicate-names-2.rs @@ -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() {} diff --git a/src/test/compile-fail/associated-item-duplicate-names-3.rs b/src/test/compile-fail/associated-item-duplicate-names-3.rs index 7c4c5ca6b4eab..12cab13d0b9b3 100644 --- a/src/test/compile-fail/associated-item-duplicate-names-3.rs +++ b/src/test/compile-fail/associated-item-duplicate-names-3.rs @@ -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() { diff --git a/src/test/compile-fail/associated-item-duplicate-names.rs b/src/test/compile-fail/associated-item-duplicate-names.rs index 4c484b49024ef..85868f5c02085 100644 --- a/src/test/compile-fail/associated-item-duplicate-names.rs +++ b/src/test/compile-fail/associated-item-duplicate-names.rs @@ -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() { diff --git a/src/test/compile-fail/impl-duplicate-methods.rs b/src/test/compile-fail/impl-duplicate-methods.rs index 6201d9862bb69..148958ae12897 100644 --- a/src/test/compile-fail/impl-duplicate-methods.rs +++ b/src/test/compile-fail/impl-duplicate-methods.rs @@ -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() {} diff --git a/src/test/compile-fail/issue-4265.rs b/src/test/compile-fail/issue-4265.rs index 328de9f8187e5..62db68dcbb2ee 100644 --- a/src/test/compile-fail/issue-4265.rs +++ b/src/test/compile-fail/issue-4265.rs @@ -17,7 +17,7 @@ impl Foo { Foo { baz: 0 }.bar(); } - fn bar() { //~ ERROR duplicate associated function + fn bar() { //~ ERROR duplicate definitions } } diff --git a/src/test/compile-fail/issue-8153.rs b/src/test/compile-fail/issue-8153.rs index ea7224939ce56..457918b54d4ae 100644 --- a/src/test/compile-fail/issue-8153.rs +++ b/src/test/compile-fail/issue-8153.rs @@ -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() { diff --git a/src/test/compile-fail/method-macro-backtrace.rs b/src/test/compile-fail/method-macro-backtrace.rs index 967a8531b2c0a..f3c227849dcbe 100644 --- a/src/test/compile-fail/method-macro-backtrace.rs +++ b/src/test/compile-fail/method-macro-backtrace.rs @@ -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() { }