error[E0080]: evaluation panicked:
cannot pun: the target holds a self-relative pointer, and what a pointer aims at is not a property of its bytes.
Use `view_ref` to read a value that holds pointers as another type (it proves what they aim at).
--> src/lib.rs
|
| const TRY_REF: () = Self::require(Self::check(Need::TRY_REF));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `puns::Plan::<[u8], Node>::TRY_REF` failed inside this call
|
note: inside `puns::Plan::<[u8], Node>::require`
--> src/lib.rs
|
| message.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/view.rs
|
| const { Plan::<[u8], <V::List as Get<I>>::Type>::TRY_REF };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: erroneous constant encountered
--> src/view.rs
|
| const { Plan::<[u8], <V::List as Get<I>>::Type>::TRY_REF };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: the above error was encountered while instantiating `fn puns::view::find::<Any<'_>, puns::view::First<puns::view::Here>, 2, false>`
--> src/view.rs
|
| _ => find::<V, I, N, HEAD>(known),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^