| error: generic parameters may not be used in const operations |
| --> $DIR/complex-expression.rs:9:38 |
| | |
| LL | struct Break0<const N: usize>([u8; { N + 1 }]); |
| | ^ cannot perform const operation using `N` |
| | |
| = help: const parameters may only be used as standalone arguments, i.e. `N` |
| |
| error: generic parameters may not be used in const operations |
| --> $DIR/complex-expression.rs:12:40 |
| | |
| LL | struct Break1<const N: usize>([u8; { { N } }]); |
| | ^ cannot perform const operation using `N` |
| | |
| = help: const parameters may only be used as standalone arguments, i.e. `N` |
| |
| error: generic parameters may not be used in const operations |
| --> $DIR/complex-expression.rs:16:17 |
| | |
| LL | let _: [u8; N + 1]; |
| | ^ cannot perform const operation using `N` |
| | |
| = help: const parameters may only be used as standalone arguments, i.e. `N` |
| |
| error: generic parameters may not be used in const operations |
| --> $DIR/complex-expression.rs:21:17 |
| | |
| LL | let _ = [0; N + 1]; |
| | ^ cannot perform const operation using `N` |
| | |
| = help: const parameters may only be used as standalone arguments, i.e. `N` |
| |
| error: aborting due to 4 previous errors |
| |