Pretty print raw pointers in consts as '{pointer}'.
This commit is contained in:
parent
5986fe24bd
commit
89cc0467a2
2 changed files with 4 additions and 3 deletions
|
|
@ -10,10 +10,10 @@ error[E0308]: mismatched types
|
|||
--> $DIR/raw-ptr-const-param.rs:7:38
|
||||
|
|
||||
LL | let _: Const<{15 as *const _}> = Const::<{10 as *const _}>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Scalar(0x000000000000000f) : *const u32`, found `Scalar(0x000000000000000a) : *const u32`
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `{pointer}`, found `{pointer}`
|
||||
|
|
||||
= note: expected type `Const<Scalar(0x000000000000000f) : *const u32>`
|
||||
found type `Const<Scalar(0x000000000000000a) : *const u32>`
|
||||
= note: expected type `Const<{pointer}>`
|
||||
found type `Const<{pointer}>`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue