]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/wf-misc.min.stderr
Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup
[rust.git] / src / test / ui / const-generics / wf-misc.min.stderr
1 error: generic parameters may not be used in const operations
2   --> $DIR/wf-misc.rs:9:17
3    |
4 LL |     let _: [u8; N + 1];
5    |                 ^ cannot perform const operation using `N`
6    |
7    = help: const parameters may only be used as standalone arguments, i.e. `N`
8    = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
9
10 error: generic parameters may not be used in const operations
11   --> $DIR/wf-misc.rs:17:21
12    |
13 LL |     let _: Const::<{N + 1}>;
14    |                     ^ cannot perform const operation using `N`
15    |
16    = help: const parameters may only be used as standalone arguments, i.e. `N`
17    = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
18
19 error: aborting due to 2 previous errors
20