rust/tests/crashes/114663.rs
2024-04-14 11:21:51 +02:00

18 lines
266 B
Rust

//@ known-bug: #114663
//@ edition:2021
#![feature(generic_const_exprs)]
use core::fmt::Debug;
struct Inline<T>
where
[u8; ::core::mem::size_of::<T>() + 1]:,
{
_phantom: PhantomData<T>,
}
fn main() {
let dst = Inline::<dyn Debug>::new(0); // BANG!
}