fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
907 B21 linesraw
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   |            ^^^^^^^^^^^^^^
6   |
7   = note: `#[warn(incomplete_features)]` on by default
8
9error[E0277]: arrays only have std trait implementations for lengths 0..=32
10  --> $DIR/broken-mir-2.rs:7:36
11   |
12LL | struct S<T: Debug, const N: usize>([T; N]);
13   |                                    ^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[T; _]`
14   |
15   = note: required because of the requirements on the impl of `std::fmt::Debug` for `[T; _]`
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`
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0277`.