blob: 55d31ce80876954ca50650ba7824a1dc4aabbee0 [file] [log] [blame]
// Check that we correctly prevent users from making trait objects
// from traits with static methods.
trait Foo {
fn foo();
}
fn foo_implicit<T:Foo+'static>(b: Box<T>) -> Box<dyn Foo + 'static> {
//~^ ERROR E0038
loop { }
}
fn main() {
}