Skip to content

Commit 25bf73d

Browse files
committed
Update bad-annotation error message
1 parent b575c18 commit 25bf73d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/ui/on-unimplemented/bad-annotation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ trait BadAnnotation1
2828
{}
2929

3030
#[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{C}>`"]
31-
//~^ ERROR there is no type parameter C on trait BadAnnotation2
31+
//~^ ERROR there is no parameter C on trait BadAnnotation2
3232
trait BadAnnotation2<A,B>
3333
{}
3434

src/test/ui/on-unimplemented/bad-annotation.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | #[rustc_on_unimplemented] //~ ERROR `#[rustc_on_unimplemented]` requires a
66
|
77
= note: eg `#[rustc_on_unimplemented = "foo"]`
88

9-
error[E0230]: there is no type parameter C on trait BadAnnotation2
9+
error[E0230]: there is no parameter C on trait BadAnnotation2
1010
--> $DIR/bad-annotation.rs:30:1
1111
|
1212
LL | #[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{C}>`"]

0 commit comments

Comments
 (0)