about summary refs log tree commit diff
path: root/tests/ui/associated-consts/associated-const-type-parameter-arrays.stderr
blob: 7f9324035e408f4c67585662ac56bcaf63ad9169 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: generic parameters may not be used in const operations
  --> $DIR/associated-const-type-parameter-arrays.rs:16:24
   |
LL |     let _array: [u32; <A as Foo>::Y];
   |                        ^ cannot perform const operation using `A`
   |
   = note: type parameters may not be used in const expressions
   = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions

error: aborting due to 1 previous error