|
1 | | -error: generic parameters may not be used in const operations |
2 | | - --> $DIR/explicit_anon_consts.rs:8:41 |
3 | | - | |
4 | | -LL | type Adt3<const N: usize> = Foo<const { N }>; |
5 | | - | ^ cannot perform const operation using `N` |
6 | | - | |
7 | | - = help: const parameters may only be used as standalone arguments here, i.e. `N` |
8 | | - = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions |
9 | | - |
10 | | -error: generic parameters may not be used in const operations |
11 | | - --> $DIR/explicit_anon_consts.rs:16:42 |
12 | | - | |
13 | | -LL | type Arr3<const N: usize> = [(); const { N }]; |
14 | | - | ^ cannot perform const operation using `N` |
15 | | - | |
16 | | - = help: const parameters may only be used as standalone arguments here, i.e. `N` |
17 | | - = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions |
18 | | - |
19 | | -error: generic parameters may not be used in const operations |
20 | | - --> $DIR/explicit_anon_consts.rs:25:27 |
21 | | - | |
22 | | -LL | let _3 = [(); const { N }]; |
23 | | - | ^ cannot perform const operation using `N` |
24 | | - | |
25 | | - = help: const parameters may only be used as standalone arguments here, i.e. `N` |
26 | | - = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions |
27 | | - |
28 | | -error: generic parameters may not be used in const operations |
29 | | - --> $DIR/explicit_anon_consts.rs:37:46 |
30 | | - | |
31 | | -LL | const ITEM3<const N: usize>: usize = const { N }; |
32 | | - | ^ cannot perform const operation using `N` |
33 | | - | |
34 | | - = help: const parameters may only be used as standalone arguments here, i.e. `N` |
35 | | - = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions |
36 | | - |
37 | | -error: generic parameters may not be used in const operations |
38 | | - --> $DIR/explicit_anon_consts.rs:55:31 |
39 | | - | |
40 | | -LL | T3: Trait<ASSOC = const { N }>, |
41 | | - | ^ cannot perform const operation using `N` |
42 | | - | |
43 | | - = help: const parameters may only be used as standalone arguments here, i.e. `N` |
44 | | - = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions |
45 | | - |
46 | 1 | error: complex const arguments must be placed inside of a `const` block |
47 | | - --> $DIR/explicit_anon_consts.rs:10:33 |
| 2 | + --> $DIR/explicit_anon_consts.rs:11:33 |
48 | 3 | | |
49 | 4 | LL | type Adt4<const N: usize> = Foo<{ 1 + 1 }>; |
50 | 5 | | ^^^^^^^^^ |
51 | 6 |
|
52 | 7 | error: complex const arguments must be placed inside of a `const` block |
53 | | - --> $DIR/explicit_anon_consts.rs:18:34 |
| 8 | + --> $DIR/explicit_anon_consts.rs:19:34 |
54 | 9 | | |
55 | 10 | LL | type Arr4<const N: usize> = [(); 1 + 1]; |
56 | 11 | | ^^^^^ |
57 | 12 |
|
58 | 13 | error: complex const arguments must be placed inside of a `const` block |
59 | | - --> $DIR/explicit_anon_consts.rs:27:19 |
| 14 | + --> $DIR/explicit_anon_consts.rs:28:19 |
60 | 15 | | |
61 | 16 | LL | let _4 = [(); 1 + 1]; |
62 | 17 | | ^^^^^ |
63 | 18 |
|
64 | 19 | error: complex const arguments must be placed inside of a `const` block |
65 | | - --> $DIR/explicit_anon_consts.rs:40:38 |
| 20 | + --> $DIR/explicit_anon_consts.rs:41:38 |
66 | 21 | | |
67 | 22 | LL | const ITEM4<const N: usize>: usize = { 1 + 1 }; |
68 | 23 | | ^^^^^^^^^ |
69 | 24 |
|
70 | 25 | error: complex const arguments must be placed inside of a `const` block |
71 | | - --> $DIR/explicit_anon_consts.rs:57:23 |
| 26 | + --> $DIR/explicit_anon_consts.rs:58:23 |
72 | 27 | | |
73 | 28 | LL | T4: Trait<ASSOC = { 1 + 1 }>, |
74 | 29 | | ^^^^^^^^^ |
|
0 commit comments