]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-consts/associated-const-type-parameter-arrays-2.stderr
Rollup merge of #100192 - tmiasko:rm-duplicated-locals, r=nagisa
[rust.git] / src / test / ui / associated-consts / associated-const-type-parameter-arrays-2.stderr
1 error: constant expression depends on a generic parameter
2   --> $DIR/associated-const-type-parameter-arrays-2.rs:16:22
3    |
4 LL |     let _array = [4; <A as Foo>::Y];
5    |                      ^^^^^^^^^^^^^
6    |
7    = note: this may fail depending on what value the parameter takes
8
9 error: aborting due to previous error
10