Skip to content

Commit 02ce3ac

Browse files
committed
add a NOTE comment to the object safety test so that it passes
1 parent bbe755c commit 02ce3ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/compile-fail/arbitrary-self-types-not-object-safe.rs

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ fn make_foo() {
3535
//~| ERROR E0038
3636
//~| NOTE method `foo` has a non-standard `self` type
3737
//~| NOTE the trait `Foo` cannot be made into an object
38+
//~| NOTE required because of the requirements on the impl of `std::ops::CoerceUnsized<std::boxed::Box<Foo>>` for `std::boxed::Box<usize>`
3839
}
3940

4041
fn make_bar() {

0 commit comments

Comments
 (0)