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