| 1 |
error[E0308]: mismatched types |
| 2 |
--> tests/ui-msrv/transmute-ref-dst-mutable.rs:18:22 |
| 3 |
| |
| 4 |
18 | let _: &mut u8 = transmute_ref!(&0u8); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^ types differ in mutability |
| 6 |
| |
| 7 |
= note: expected mutable reference `&mut u8` |
| 8 |
found reference `&_` |
| 9 |
= note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 10 |
|
| 11 |
error[E0308]: mismatched types |
| 12 |
--> tests/ui-msrv/transmute-ref-dst-mutable.rs:18:22 |
| 13 |
| |
| 14 |
18 | let _: &mut u8 = transmute_ref!(&0u8); |
| 15 |
| ^^^^^^^^^^^^^^^^^^^^ types differ in mutability |
| 16 |
| |
| 17 |
= note: expected mutable reference `&mut u8` |
| 18 |
found reference `&_` |
| 19 |
= note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 20 |
|
| 21 |
error[E0308]: mismatched types |
| 22 |
--> tests/ui-msrv/transmute-ref-dst-mutable.rs:18:22 |
| 23 |
| |
| 24 |
18 | let _: &mut u8 = transmute_ref!(&0u8); |
| 25 |
| ^^^^^^^^^^^^^^^^^^^^ types differ in mutability |
| 26 |
| |
| 27 |
= note: expected mutable reference `&mut u8` |
| 28 |
found reference `&_` |
| 29 |
= note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) |