• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: the trait bound `*const usize: IntoBytes` is not satisfied
2  --> tests/ui-msrv/transmute-ptr-to-usize.rs:20:30
3   |
420 | const POINTER_VALUE: usize = transmute!(&0usize as *const usize);
5   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `*const usize`
6   |
7note: required by `AssertIsIntoBytes`
8  --> tests/ui-msrv/transmute-ptr-to-usize.rs:20:30
9   |
1020 | const POINTER_VALUE: usize = transmute!(&0usize as *const usize);
11   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12   = note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info)
13
14error[E0277]: the trait bound `*const usize: IntoBytes` is not satisfied
15  --> tests/ui-msrv/transmute-ptr-to-usize.rs:20:30
16   |
1720 | const POINTER_VALUE: usize = transmute!(&0usize as *const usize);
18   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `*const usize`
19   |
20note: required by a bound in `AssertIsIntoBytes`
21  --> tests/ui-msrv/transmute-ptr-to-usize.rs:20:30
22   |
2320 | const POINTER_VALUE: usize = transmute!(&0usize as *const usize);
24   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertIsIntoBytes`
25   = note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info)
26