regression test for reverse() unsoundness Cc https://github.com/rust-lang/rust/pull/90821
harness = false
#![feature(custom_test_frameworks)]