rust/src/test/ui/cast/casts-differing-anon.stderr

20 lines
824 B
Plaintext
Raw Normal View History

error[E0308]: mismatched types
2018-12-25 09:56:47 -06:00
--> $DIR/casts-differing-anon.rs:21:13
|
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 _;
| ^^^^^ expected opaque type, found a different opaque type
|
= 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
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.