summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/missing-larger-array-impl.rs
blob: e6c879c8ebdab8afd89d63c22d1957a2f338ff14 (plain)
1
2
3
4
5
6
7
8
9
struct X;

// Make sure that we show the impl trait refs in the help message with
// their evaluated constants, rather than `core::::array::{impl#30}::{constant#0}`

fn main() {
    <[X; 35] as Default>::default();
    //~^ ERROR the trait bound `[X; 35]: Default` is not satisfied
}