error[E0080]: evaluation panicked:
cannot pun: behind a pointer, some values of the source are not valid for the target, or do not prove one of its rules: nothing is checked behind a pointer.
Give the target a type that every value of the source is valid for.
--> src/deep.rs
|
| const { require(behind::<X, Y>(0)) };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `puns::deep::target::<u8, bool>::{constant#0}` failed inside this call
|
note: inside `puns::deep::require`
--> src/deep.rs
|
| Message::new(why).panic();
| ^^^^^^^^^^^^^^^^^^^^^^^^^
note: inside `puns::Message::panic`
--> $RUST/core/src/panic.rs
|
= note: the failure occurred here
|
::: src/lib.rs
|
| panic!("{}", unsafe { core::str::from_utf8_unchecked(this.bytes.split_at(this.len).0) })
| ---------------------------------------------------------------------------------------- in this macro invocation
note: erroneous constant encountered
--> src/deep.rs
|
| const { require(behind::<X, Y>(0)) };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: the above error was encountered while instantiating `fn puns::deep::target::<u8, bool>`
--> src/deep.rs
|
| let _: fn() = target::<A::Pointee, B::Pointee>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^