@@ -39,42 +39,56 @@ error: generic parameters may not be used in const operations
3939 |
4040LL | const ITEM3<const N: usize>: usize = const { N };
4141 | ^
42+ |
43+ = help: add `#![feature(opaque_generic_const_args)]` to allow generic expressions as the RHS of const items
4244
4345error: generic parameters may not be used in const operations
4446 --> $DIR/explicit_anon_consts.rs:60:31
4547 |
4648LL | T3: Trait<ASSOC = const { N }>,
4749 | ^
50+ |
51+ = help: add `#![feature(opaque_generic_const_args)]` to allow generic expressions as the RHS of const items
4852
4953error: generic parameters may not be used in const operations
5054 --> $DIR/explicit_anon_consts.rs:69:58
5155 |
5256LL | struct Default3<const N: usize, const M: usize = const { N }>;
5357 | ^
58+ |
59+ = help: add `#![feature(opaque_generic_const_args)]` to allow generic expressions as the RHS of const items
5460
5561error: generic parameters may not be used in const operations
5662 --> $DIR/explicit_anon_consts.rs:28:27
5763 |
5864LL | let _3 = [(); const { N }];
5965 | ^
66+ |
67+ = help: add `#![feature(opaque_generic_const_args)]` to allow generic expressions as the RHS of const items
6068
6169error: generic parameters may not be used in const operations
6270 --> $DIR/explicit_anon_consts.rs:33:26
6371 |
6472LL | let _6: [(); const { N }] = todo!();
6573 | ^
74+ |
75+ = help: add `#![feature(opaque_generic_const_args)]` to allow generic expressions as the RHS of const items
6676
6777error: generic parameters may not be used in const operations
6878 --> $DIR/explicit_anon_consts.rs:11:41
6979 |
7080LL | type Adt3<const N: usize> = Foo<const { N }>;
7181 | ^
82+ |
83+ = help: add `#![feature(opaque_generic_const_args)]` to allow generic expressions as the RHS of const items
7284
7385error: generic parameters may not be used in const operations
7486 --> $DIR/explicit_anon_consts.rs:19:42
7587 |
7688LL | type Arr3<const N: usize> = [(); const { N }];
7789 | ^
90+ |
91+ = help: add `#![feature(opaque_generic_const_args)]` to allow generic expressions as the RHS of const items
7892
7993error: aborting due to 13 previous errors
8094
0 commit comments