mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +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, ()>();
|
|
}
|