mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
23 lines
370 B
Rust
23 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, ()>();
|
|
}
|