1 error[E0038]: the trait `Foo` cannot be made into an object
2 --> $DIR/object-safety-no-static.rs:8:1
5 | --- associated function `foo` has no `self` parameter
7 LL | fn foo_implicit<T:Foo+'static>(b: Box<T>) -> Box<dyn Foo + 'static> {
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` cannot be made into an object
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0038`.