]> git.lizzy.rs Git - rust.git/commitdiff
add a NOTE comment to the object safety test so that it passes
authorMichael Hewson <michael@michaelhewson.ca>
Wed, 8 Nov 2017 13:29:47 +0000 (08:29 -0500)
committerMichael Hewson <michael@michaelhewson.ca>
Wed, 8 Nov 2017 13:29:47 +0000 (08:29 -0500)
src/test/compile-fail/arbitrary-self-types-not-object-safe.rs

index 1f9a2191c9cc8d4aac203346d0f6d8e1a7caaa69..f5f4abf506ebc0e983d7b7b7946d529725489819 100644 (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() {