fix error message in arbitrary-self-types-not-object-safe test

put the error message on one line so the test suite does not think it is two errors
use a substring of the error message so it fits in 100 chars for tidy
This commit is contained in:
Michael Hewson 2017-11-08 16:12:12 -05:00
parent 0954e5489c
commit aa00f17409

View file

@ -44,8 +44,7 @@ fn make_foo() {
//~| ERROR E0038
//~| NOTE method `foo` has a non-standard `self` type
//~| NOTE the trait `Foo` cannot be made into an object
//~| NOTE required because of the requirements on the impl of
//~| `std::ops::CoerceUnsized<std::boxed::Box<Foo>>` for `std::boxed::Box<usize>`
//~| NOTE requirements on the impl of `std::ops::CoerceUnsized<std::boxed::Box<Foo>>`
}
fn make_bar() {