1 error[E0308]: mismatched types
2 --> $DIR/object-unsafe-trait-in-return-position-impl-trait.rs:36:5
4 LL | fn can() -> impl NotObjectSafe {
5 | ------------------ the expected opaque type
8 | ^ expected struct `A`, found struct `B`
10 = note: expected opaque type `impl NotObjectSafe`
13 error[E0308]: mismatched types
14 --> $DIR/object-unsafe-trait-in-return-position-impl-trait.rs:43:5
16 LL | fn cat() -> impl ObjectSafe {
17 | --------------- the expected opaque type
20 | ^ expected struct `A`, found struct `B`
22 = note: expected opaque type `impl ObjectSafe`
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0308`.