Skip to content

Commit 5c656f0

Browse files
committed
update ui/arbitrary-self-types-not-object-safe with shorter error message
1 parent 23555b9 commit 5c656f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/ui/arbitrary-self-types-not-object-safe.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ error[E0038]: the trait `Foo` cannot be made into an object
44
40 | let x = Box::new(5usize) as Box<Foo>;
55
| ^^^^^^^^ the trait `Foo` cannot be made into an object
66
|
7-
= note: method `foo` has a non-standard `self` type. Only `&self`, `&mut self`, and `Box<Self>` are currently supported for trait objects
7+
= note: method `foo` has a non-standard `self` type
88

99
error[E0038]: the trait `Foo` cannot be made into an object
1010
--> $DIR/arbitrary-self-types-not-object-safe.rs:40:13
1111
|
1212
40 | let x = Box::new(5usize) as Box<Foo>;
1313
| ^^^^^^^^^^^^^^^^ the trait `Foo` cannot be made into an object
1414
|
15-
= note: method `foo` has a non-standard `self` type. Only `&self`, `&mut self`, and `Box<Self>` are currently supported for trait objects
15+
= note: method `foo` has a non-standard `self` type
1616
= note: required because of the requirements on the impl of `std::ops::CoerceUnsized<std::boxed::Box<Foo>>` for `std::boxed::Box<usize>`
1717

1818
error: aborting due to 2 previous errors

0 commit comments

Comments
 (0)