1 error[E0038]: the trait `Foo` cannot be made into an object
2 --> $DIR/object-safety-no-static.rs:12:18
5 | --- associated function `foo` has no `self` parameter
7 LL | fn diverges() -> Box<dyn Foo> {
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`.