// Test that an object type `Box` is not considered to implement the // trait `Foo`. Issue #5087. trait Foo {} fn take_foo(f: F) {} fn take_object(f: Box) { take_foo(f); } //~^ ERROR `Box: Foo` is not satisfied fn main() {}