mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +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();
|
|
}
|