]>
Commit | Line | Data |
---|---|---|
dc9dc135 XL |
1 | warning: the feature `const_generics` is incomplete and may cause the compiler to crash |
2 | --> $DIR/broken-mir-2.rs:1:12 | |
3 | | | |
4 | LL | #![feature(const_generics)] | |
5 | | ^^^^^^^^^^^^^^ | |
416331ca XL |
6 | | |
7 | = note: `#[warn(incomplete_features)]` on by default | |
dc9dc135 | 8 | |
416331ca | 9 | error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
dc9dc135 XL |
10 | --> $DIR/broken-mir-2.rs:7:36 |
11 | | | |
12 | LL | struct S<T: Debug, const N: usize>([T; N]); | |
416331ca | 13 | | ^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[T; _]` |
dc9dc135 | 14 | | |
416331ca | 15 | = note: required because of the requirements on the impl of `std::fmt::Debug` for `[T; _]` |
dc9dc135 XL |
16 | = note: required because of the requirements on the impl of `std::fmt::Debug` for `&[T; _]` |
17 | = note: required for the cast to the object type `dyn std::fmt::Debug` | |
74b04a01 | 18 | = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) |
dc9dc135 XL |
19 | |
20 | error: aborting due to previous error | |
21 | ||
22 | For more information about this error, try `rustc --explain E0277`. |