diff --git a/src/test/ui/arbitrary-self-types-not-object-safe.stderr b/src/test/ui/arbitrary-self-types-not-object-safe.stderr index a1090fe031eb..f258488ee2fb 100644 --- a/src/test/ui/arbitrary-self-types-not-object-safe.stderr +++ b/src/test/ui/arbitrary-self-types-not-object-safe.stderr @@ -4,7 +4,7 @@ error[E0038]: the trait `Foo` cannot be made into an object 40 | let x = Box::new(5usize) as Box; | ^^^^^^^^ the trait `Foo` cannot be made into an object | - = note: method `foo` has a non-standard `self` type. Only `&self`, `&mut self`, and `Box` are currently supported for trait objects + = note: method `foo` has a non-standard `self` type error[E0038]: the trait `Foo` cannot be made into an object --> $DIR/arbitrary-self-types-not-object-safe.rs:40:13 @@ -12,7 +12,7 @@ error[E0038]: the trait `Foo` cannot be made into an object 40 | let x = Box::new(5usize) as Box; | ^^^^^^^^^^^^^^^^ the trait `Foo` cannot be made into an object | - = note: method `foo` has a non-standard `self` type. Only `&self`, `&mut self`, and `Box` are currently supported for trait objects + = note: method `foo` has a non-standard `self` type = note: required because of the requirements on the impl of `std::ops::CoerceUnsized>` for `std::boxed::Box` error: aborting due to 2 previous errors