]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/broken-mir-2.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / const-generics / broken-mir-2.stderr
CommitLineData
dc9dc135
XL
1warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2 --> $DIR/broken-mir-2.rs:1:12
3 |
4LL | #![feature(const_generics)]
5 | ^^^^^^^^^^^^^^
416331ca
XL
6 |
7 = note: `#[warn(incomplete_features)]` on by default
dc9dc135 8
416331ca 9error[E0277]: arrays only have std trait implementations for lengths 0..=32
dc9dc135
XL
10 --> $DIR/broken-mir-2.rs:7:36
11 |
12LL | 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
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0277`.