2021-08-20 09:47:12 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/casts-differing-anon.rs:21:13
|
2017-12-23 15:38:09 -06:00
|
|
|
|
|
2021-08-20 09:47:12 -05:00
|
|
|
LL | fn foo() -> Box<impl fmt::Debug+?Sized> {
|
|
|
|
| ---------------------- the found opaque type
|
|
|
|
...
|
|
|
|
LL | fn bar() -> Box<impl fmt::Debug+?Sized> {
|
|
|
|
| ---------------------- the expected opaque type
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | b_raw = f_raw as *mut _;
|
2021-08-20 09:47:12 -05:00
|
|
|
| ^^^^^ expected opaque type, found a different opaque type
|
2017-12-23 15:38:09 -06:00
|
|
|
|
|
2021-08-20 09:47:12 -05:00
|
|
|
= note: expected opaque type `impl Debug + ?Sized` (opaque type at <$DIR/casts-differing-anon.rs:7:17>)
|
|
|
|
found opaque type `impl Debug + ?Sized` (opaque type at <$DIR/casts-differing-anon.rs:3:17>)
|
|
|
|
= note: distinct uses of `impl Trait` result in different opaque types
|
2017-12-23 15:38:09 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2021-08-20 09:47:12 -05:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|