mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 09:47:57 +00:00
14 lines
317 B
Rust
14 lines
317 B
Rust
#![crate_name = "foo"]
|
|
#![feature(gca_min_const_items, gca_macroless_args)]
|
|
#![expect(incomplete_features)]
|
|
|
|
use std::gca;
|
|
|
|
const N: usize = gca!(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];
|
|
}
|