2020-04-28 22:41:34 -05:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-32122-1.rs:16:24
|
|
|
|
|
|
|
|
|
LL | let _: *const u8 = &a;
|
2023-01-02 20:00:33 -06:00
|
|
|
| --------- ^^ expected `*const u8`, found `&Foo`
|
2021-06-28 13:22:47 -05:00
|
|
|
| |
|
2020-04-28 22:41:34 -05:00
|
|
|
| expected due to this
|
|
|
|
|
|
|
|
|
= note: expected raw pointer `*const u8`
|
|
|
|
found reference `&Foo`
|
2021-06-28 13:22:47 -05:00
|
|
|
help: consider dereferencing
|
|
|
|
|
|
|
|
|
LL | let _: *const u8 = &*a;
|
2021-06-21 21:07:19 -05:00
|
|
|
| +
|
2020-04-28 22:41:34 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|