1 error[E0308]: mismatched types
2 --> $DIR/casts-differing-anon.rs:21:13
4 LL | fn foo() -> Box<impl fmt::Debug+?Sized> {
5 | ---------------------- the found opaque type
7 LL | fn bar() -> Box<impl fmt::Debug+?Sized> {
8 | ---------------------- the expected opaque type
10 LL | b_raw = f_raw as *mut _;
11 | ^^^^^ expected opaque type, found a different opaque type
13 = note: expected opaque type `impl Debug + ?Sized` (opaque type at <$DIR/casts-differing-anon.rs:7:17>)
14 found opaque type `impl Debug + ?Sized` (opaque type at <$DIR/casts-differing-anon.rs:3:17>)
15 = note: distinct uses of `impl Trait` result in different opaque types
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0308`.