d6a9793722
- uses a never-stable core::array::LengthAtMost32 to bound the impls - includes a custom error message to avoid mentioning LengthAtMost32 too often - doesn't use macros for the slice implementations to avoid #62433
11 lines
288 B
Rust
11 lines
288 B
Rust
#![feature(const_generics)]
|
|
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
|
|
|
|
use std::fmt::Debug;
|
|
|
|
#[derive(Debug)]
|
|
struct S<T: Debug, const N: usize>([T; N]);
|
|
//~^ ERROR arrays only have std trait implementations for lengths 0..=32
|
|
|
|
fn main() {}
|