@@ -13,7 +13,7 @@ error: generic parameters may not be used in const operations
1313LL | let _: [u8; bar::<N>()];
1414 | ^ cannot perform const operation using `N`
1515 |
16- = help: const parameters may only be used as standalone arguments here , i.e. `N`
16+ = help: const parameters may only be used as standalone arguments in const generic args , i.e. `N`
1717 = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
1818
1919error: generic parameters may not be used in const operations
@@ -58,7 +58,7 @@ error: generic parameters may not be used in const operations
5858LL | let _ = [0; bar::<N>()];
5959 | ^ cannot perform const operation using `N`
6060 |
61- = help: const parameters may only be used as standalone arguments here , i.e. `N`
61+ = help: const parameters may only be used as standalone arguments in array repeat expression , i.e. `N`
6262 = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
6363
6464error: generic parameters may not be used in const operations
@@ -112,7 +112,7 @@ error: generic parameters may not be used in const operations
112112LL | let _: Foo<{ bar::<N>() }>;
113113 | ^ cannot perform const operation using `N`
114114 |
115- = help: const parameters may only be used as standalone arguments here , i.e. `N`
115+ = help: const parameters may only be used as standalone arguments in const generic args , i.e. `N`
116116 = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
117117
118118error: generic parameters may not be used in const operations
@@ -166,7 +166,7 @@ error: generic parameters may not be used in const operations
166166LL | let _ = Foo::<{ bar::<N>() }>;
167167 | ^ cannot perform const operation using `N`
168168 |
169- = help: const parameters may only be used as standalone arguments here , i.e. `N`
169+ = help: const parameters may only be used as standalone arguments in const generic args , i.e. `N`
170170 = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
171171
172172error: generic parameters may not be used in const operations
0 commit comments