]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/wf-misc.full.stderr
Rollup merge of #75485 - RalfJung:pin, r=nagisa
[rust.git] / src / test / ui / const-generics / wf-misc.full.stderr
1 error: constant expression depends on a generic parameter
2   --> $DIR/wf-misc.rs:9:12
3    |
4 LL |     let _: [u8; N + 1];
5    |            ^^^^^^^^^^^
6    |
7    = note: this may fail depending on what value the parameter takes
8
9 error: constant expression depends on a generic parameter
10   --> $DIR/wf-misc.rs:17:12
11    |
12 LL |     let _: Const::<{N + 1}>;
13    |            ^^^^^^^^^^^^^^^^
14    |
15    = note: this may fail depending on what value the parameter takes
16
17 error: aborting due to 2 previous errors
18