mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
22 lines
370 B
Rust
22 lines
370 B
Rust
//@ known-bug: #123693
|
|
|
|
#![feature(transmutability)]
|
|
|
|
mod assert {
|
|
use std::mem::{Assume, BikeshedIntrinsicFrom};
|
|
|
|
pub fn is_transmutable<Src, Dst>()
|
|
where
|
|
Dst: BikeshedIntrinsicFrom<Src, { Assume::NOTHING }>,
|
|
{
|
|
}
|
|
}
|
|
|
|
enum Lopsided {
|
|
Smol(()),
|
|
Lorg(bool),
|
|
}
|
|
|
|
fn should_pad_variants() {
|
|
assert::is_transmutable::<Lopsided, ()>();
|
|
}
|