add a NOTE comment to the object safety test so that it passes

This commit is contained in:
Michael Hewson 2017-11-08 08:29:47 -05:00
parent bbe755c7a6
commit 02ce3ac1f8
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,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>`
}
fn make_bar() {