]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/derive-debug-array-wrapper.stderr
Rollup merge of #72605 - GuillaumeGomez:cleanup-e0617, r=Dylan-DPC
[rust.git] / src / test / ui / const-generics / derive-debug-array-wrapper.stderr
1 warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
2   --> $DIR/derive-debug-array-wrapper.rs:1:12
3    |
4 LL | #![feature(const_generics)]
5    |            ^^^^^^^^^^^^^^
6    |
7    = note: `#[warn(incomplete_features)]` on by default
8    = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9
10 error[E0277]: arrays only have std trait implementations for lengths 0..=32
11   --> $DIR/derive-debug-array-wrapper.rs:6:5
12    |
13 LL |     a: [u32; N],
14    |     ^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[u32; N]`
15    |
16    = note: required because of the requirements on the impl of `std::fmt::Debug` for `[u32; N]`
17    = note: required because of the requirements on the impl of `std::fmt::Debug` for `&[u32; N]`
18    = note: required for the cast to the object type `dyn std::fmt::Debug`
19    = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
20
21 error: aborting due to previous error; 1 warning emitted
22
23 For more information about this error, try `rustc --explain E0277`.