Skip to content

Commit 7d302d2

Browse files
committed
Changed E0038 error message in test to comply with new message
1 parent 85dbc65 commit 7d302d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/compile-fail/object-safety-supertrait-mentions-Self.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn make_bar<T:Bar<u32>>(t: &T) -> &Bar<u32> {
2424

2525
fn make_baz<T:Baz>(t: &T) -> &Baz {
2626
//~^ ERROR E0038
27-
//~| NOTE the trait cannot use `Self` as a type parameter in the supertrait listing
27+
//~| NOTE the trait cannot use `Self` as a type parameter in the supertraits or where-clauses
2828
//~| NOTE the trait `Baz` cannot be made into an object
2929
t
3030
}

0 commit comments

Comments
 (0)