mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
11 lines
234 B
Rust
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();
|
|
}
|