Files
rust/src/test/ui/const-generics/broken-mir-2.stderr

23 lines
1021 B
Plaintext
Raw Normal View History

2019-05-20 23:03:38 +01:00
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
--> $DIR/broken-mir-2.rs:1:12
|
LL | #![feature(const_generics)]
| ^^^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
2019-05-20 23:03:38 +01:00
error[E0277]: arrays only have std trait implementations for lengths 0..=32
2019-05-20 23:03:38 +01:00
--> $DIR/broken-mir-2.rs:7:36
|
LL | struct S<T: Debug, const N: usize>([T; N]);
| ^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[T; _]`
2019-05-20 23:03:38 +01:00
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[T; _]`
2019-05-25 20:42:14 +01:00
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[T; _]`
2019-05-20 23:03:38 +01:00
= note: required for the cast to the object type `dyn std::fmt::Debug`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
2019-05-20 23:03:38 +01:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.