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 | ------------------ expected `A` because of return type
8 | ^ expected struct `A`, found struct `B`
10 error[E0308]: mismatched types
11 --> $DIR/object-unsafe-trait-in-return-position-impl-trait.rs:43:5
13 LL | fn cat() -> impl ObjectSafe {
14 | --------------- expected `A` because of return type
17 | ^ expected struct `A`, found struct `B`
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0308`.