summary refs log tree commit diff
path: root/src/test/ui/const-generics/wf-misc.min.stderr
blob: 935f12dd2c3048e8c8f077653e303619d7fdee1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: generic parameters may not be used in const operations
  --> $DIR/wf-misc.rs:9: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/wf-misc.rs:17:21
   |
LL |     let _: Const::<{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 2 previous errors