summary refs log tree commit diff
path: root/src/test/ui/const-generics/wf-misc.full.stderr
blob: dfb593a9507d5f5a03c84589583cf592f12bbb28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: constant expression depends on a generic parameter
  --> $DIR/wf-misc.rs:8:12
   |
LL |     let _: [u8; N + 1];
   |            ^^^^^^^^^^^
   |
   = note: this may fail depending on what value the parameter takes

error: constant expression depends on a generic parameter
  --> $DIR/wf-misc.rs:16:12
   |
LL |     let _: Const::<{N + 1}>;
   |            ^^^^^^^^^^^^^^^^
   |
   = note: this may fail depending on what value the parameter takes

error: aborting due to 2 previous errors