]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/broken-mir-2.stderr
162153573a1150b86ca682f45af7f88b31687ed1
[rust.git] / src / test / ui / const-generics / broken-mir-2.stderr
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    |            ^^^^^^^^^^^^^^
6
7 error[E0277]: `[T; N]` doesn't implement `std::fmt::Debug`
8   --> $DIR/broken-mir-2.rs:7:36
9    |
10 LL | struct S<T: Debug, const N: usize>([T; N]);
11    |                                    ^^^^^^ `[T; N]` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
12    |
13    = help: the trait `std::fmt::Debug` is not implemented for `[T; N]`
14    = note: required because of the requirements on the impl of `std::fmt::Debug` for `&[T; N]`
15    = note: required for the cast to the object type `dyn std::fmt::Debug`
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.