]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cast/casts-differing-anon.stderr
Rollup merge of #92242 - compiler-errors:layout-modulo-regions, r=matthewjasper
[rust.git] / src / test / ui / cast / casts-differing-anon.stderr
1 error[E0308]: mismatched types
2   --> $DIR/casts-differing-anon.rs:21:13
3    |
4 LL | fn foo() -> Box<impl fmt::Debug+?Sized> {
5    |                 ---------------------- the found opaque type
6 ...
7 LL | fn bar() -> Box<impl fmt::Debug+?Sized> {
8    |                 ---------------------- the expected opaque type
9 ...
10 LL |     b_raw = f_raw as *mut _;
11    |             ^^^^^ expected opaque type, found a different opaque type
12    |
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
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0308`.