Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-mutable.stderr

raw
1 error[E0308]: mismatched types
2 --> tests/ui-msrv/try_transmute_ref-dst-mutable.rs:18:33
3 |
4 18 | let _: Result<&mut u8, _> = try_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 `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
10
11 error[E0308]: mismatched types
12 --> tests/ui-msrv/try_transmute_ref-dst-mutable.rs:18:33
13 |
14 18 | let _: Result<&mut u8, _> = try_transmute_ref!(&0u8);
15 | ^^^^^^^^^^^^^^^^^^^^^^^^
16 | |
17 | types differ in mutability
18 | help: try using a variant of the expected enum: `Err($crate::util::macro_util::try_transmute_ref::<_, _>(e))`
19 |
20 = note: expected enum `Result<&mut u8, _>`
21 found enum `Result<&_, ValidityError<&u8, _>>`
22 = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)