add incremental test for issue 135514 by lqd · Pull Request #135522 · rust-lang/rust (original) (raw)
r? @compiler-errors as requested in #135514 (comment)
This adds parts of @steffahn's repro as an incremental test for #135514. I had initially added the actual exploitation of the issue into the safe transmute, but removed it because it's not exactly needed for such a test. I can add it back if you'd like.
I've verified that the test fails with #133828 reverted.