1 error[E0038]: the trait `NotObjectSafe` cannot be made into an object
2 --> $DIR/object-unsafe-trait-in-return-position-dyn-trait.rs:21:13
5 | --- associated function `foo` has no `self` parameter
7 LL | fn car() -> dyn NotObjectSafe {
8 | ^^^^^^^^^^^^^^^^^ the trait `NotObjectSafe` cannot be made into an object
10 error[E0038]: the trait `NotObjectSafe` cannot be made into an object
11 --> $DIR/object-unsafe-trait-in-return-position-dyn-trait.rs:28:13
13 LL | fn foo() -> Self;
14 | --- associated function `foo` has no `self` parameter
16 LL | fn cat() -> Box<dyn NotObjectSafe> {
17 | ^^^^^^^^^^^^^^^^^^^^^^ the trait `NotObjectSafe` cannot be made into an object
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0038`.