rust/tests/crashes/118952-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
234 B
Rust
Raw Permalink Normal View History

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