mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
12 lines
334 B
Rust
12 lines
334 B
Rust
#![crate_name = "foo"]
|
|
#![feature(min_generic_const_args, macroless_generic_const_args)]
|
|
#![expect(incomplete_features)]
|
|
|
|
const N: usize = core::direct_const_arg!(2);
|
|
|
|
//@ has 'foo/trait.CollectArray.html'
|
|
//@ has - '//pre[@class="rust item-decl"]/code' '[A; N]'
|
|
pub trait CollectArray<A> {
|
|
fn inner_array(&mut self) -> [A; N];
|
|
}
|