error: sub-expression diverges
  --> $DIR/issue-7447.rs:23:15
   |
LL |     byte_view(panic!());
   |               ^^^^^^^^
   |
   = note: `-D clippy::diverging-sub-expression` implied by `-D warnings`
   = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)

error: sub-expression diverges
  --> $DIR/issue-7447.rs:24:19
   |
LL |     group_entries(panic!());
   |                   ^^^^^^^^
   |
   = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 2 previous errors

