2020-04-30 22:36:06 +00:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-71676-1.rs:43:24
|
|
|
|
|
|
|
|
|
LL | let _: *const u8 = &a;
|
2023-01-03 02:00:33 +00:00
|
|
|
| --------- ^^ expected `*const u8`, found `&Emm`
|
2021-06-28 18:22:47 +00:00
|
|
|
| |
|
2020-04-30 22:36:06 +00:00
|
|
|
| expected due to this
|
|
|
|
|
|
|
|
|
= note: expected raw pointer `*const u8`
|
|
|
|
found reference `&Emm`
|
2021-06-28 18:22:47 +00:00
|
|
|
help: consider dereferencing
|
|
|
|
|
|
|
|
|
LL | let _: *const u8 = &***a;
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++
|
2020-04-30 22:36:06 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-71676-1.rs:46:22
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-71676-1.rs:49:24
|
|
|
|
|
|
|
|
|
LL | let _: *const u8 = &mut a;
|
2023-01-03 02:00:33 +00:00
|
|
|
| --------- ^^^^^^ expected `*const u8`, found `&mut Emm`
|
2021-06-28 18:22:47 +00:00
|
|
|
| |
|
2020-04-30 22:36:06 +00:00
|
|
|
| expected due to this
|
|
|
|
|
|
|
|
|
= note: expected raw pointer `*const u8`
|
|
|
|
found mutable reference `&mut Emm`
|
2021-06-28 18:22:47 +00:00
|
|
|
help: consider dereferencing
|
|
|
|
|
|
|
|
|
LL | let _: *const u8 = &***a;
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~
|
2020-04-30 22:36:06 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-71676-1.rs:52:22
|
|
|
|
|
|
|
|
|
LL | let _: *mut u8 = &mut a;
|
2023-01-03 02:00:33 +00:00
|
|
|
| ------- ^^^^^^ expected `*mut u8`, found `&mut Emm`
|
2021-06-28 18:22:47 +00:00
|
|
|
| |
|
2020-04-30 22:36:06 +00:00
|
|
|
| expected due to this
|
|
|
|
|
|
|
|
|
= note: expected raw pointer `*mut u8`
|
|
|
|
found mutable reference `&mut 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
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|