Open
Description
#64986 changed the pretty-printing of const raw pointers to {pointer}
. This can cause confusing diagnostics due to the lack of detail the printing of raw pointers provides, like the following:
error[E0308]: mismatched types
--> $DIR/raw-ptr-const-param.rs:7:38
|
LL | let _: Const<{15 as *const _}> = Const::<{10 as *const _}>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `{pointer}`, found `{pointer}`
|
= note: expected type `Const<{pointer}>`
found type `Const<{pointer}>`