about summary refs log tree commit diff
path: root/tests/crashes/114663.rs
blob: 406371f12e460aa46f80ae8cb01f65de96f6e0f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ 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!
}