about summary refs log tree commit diff
path: root/tests/crashes/118952-2.rs
blob: 469b1e8e90599c3a30f83e2a12373fea4cc778ab (plain)
1
2
3
4
5
6
7
8
9
10
//@ known-bug: #118952
#![feature(generic_const_exprs)]

pub struct TinyVec<T, const N: usize = { () }>
where
    [(); () - std::mem::size_of() - std::mem::size_of::<isize>()]:, {}

pub fn main() {
    let t = TinyVec::<u8>::new();
}