]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/wf-misc.min.stderr
Merge commit '3d0b0e66afdfaa519d8855b338b35b4605775945' into clippyup
[rust.git] / src / test / ui / const-generics / wf-misc.min.stderr
1 error: generic parameters must not be used inside of non trivial constant values
2   --> $DIR/wf-misc.rs:9:17
3    |
4 LL |     let _: [u8; N + 1];
5    |                 ^ non-trivial anonymous constants must not depend on the parameter `N`
6    |
7    = help: it is currently only allowed to use either `N` or `{ N }` as generic constants
8
9 error: generic parameters must not be used inside of non trivial constant values
10   --> $DIR/wf-misc.rs:17:21
11    |
12 LL |     let _: Const::<{N + 1}>;
13    |                     ^ non-trivial anonymous constants must not depend on the parameter `N`
14    |
15    = help: it is currently only allowed to use either `N` or `{ N }` as generic constants
16
17 error: aborting due to 2 previous errors
18