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

11 lines
234 B
Rust

//@ 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();
}