2024-04-16 18:01:07 -05:00
|
|
|
//@ known-bug: #123693
|
|
|
|
|
|
|
|
#![feature(transmutability)]
|
|
|
|
|
|
|
|
mod assert {
|
2024-08-27 09:05:54 -05:00
|
|
|
use std::mem::{Assume, TransmuteFrom};
|
2024-04-16 18:01:07 -05:00
|
|
|
|
|
|
|
pub fn is_transmutable<Src, Dst>()
|
|
|
|
where
|
2024-08-27 09:05:54 -05:00
|
|
|
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, ()>();
|
|
|
|
}
|