2020-04-30 17:36:06 -05:00
|
|
|
error[E0308]: mismatched types
|
2020-05-01 08:57:19 -05:00
|
|
|
--> $DIR/issue-71676-2.rs:41:22
|
2020-04-30 17:36:06 -05:00
|
|
|
|
|
|
|
|
LL | let _: *mut u8 = &a;
|
2021-06-28 13:22:47 -05:00
|
|
|
| ------- ^^ types differ in mutability
|
|
|
|
| |
|
2020-04-30 17:36:06 -05:00
|
|
|
| expected due to this
|
|
|
|
|
|
|
|
|
= note: expected raw pointer `*mut u8`
|
|
|
|
found reference `&Emm`
|
2021-06-28 13:22:47 -05:00
|
|
|
help: consider dereferencing
|
|
|
|
|
|
|
|
|
LL | let _: *mut u8 = &mut ***a;
|
|
|
|
| ^^^^^^^
|
2020-04-30 17:36:06 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|