rust/tests/crashes/123693.rs

23 lines
354 B
Rust
Raw Normal View History

2024-04-16 18:01:07 -05:00
//@ known-bug: #123693
#![feature(transmutability)]
mod assert {
use std::mem::{Assume, TransmuteFrom};
2024-04-16 18:01:07 -05:00
pub fn is_transmutable<Src, Dst>()
where
Dst: TransmuteFrom<Src, { Assume::NOTHING }>,
2024-04-16 18:01:07 -05:00
{
}
}
enum Lopsided {
Smol(()),
Lorg(bool),
}
fn should_pad_variants() {
assert::is_transmutable::<Lopsided, ()>();
}