]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-68977.min.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / const-generics / issues / issue-68977.min.stderr
1 error: generic parameters may not be used in const operations
2 --> $DIR/issue-68977.rs:28:17
3 |
4 LL | PhantomU8<{(INT_BITS + FRAC_BITS + 7) / 8}>;
5 | ^^^^^^^^ cannot perform const operation using `INT_BITS`
6 |
7 = help: const parameters may only be used as standalone arguments, i.e. `INT_BITS`
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/issue-68977.rs:28:28
12 |
13 LL | PhantomU8<{(INT_BITS + FRAC_BITS + 7) / 8}>;
14 | ^^^^^^^^^ cannot perform const operation using `FRAC_BITS`
15 |
16 = help: const parameters may only be used as standalone arguments, i.e. `FRAC_BITS`
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