@@ -5,7 +5,7 @@ LL | let _: [u8; foo::<T>()];
55 | ^ cannot perform const operation using `T`
66 |
77 = note: type parameters may not be used in const expressions
8- = note : use #![feature(const_generics)] and #![feature(const_evaluatable_checked)] to allow generic const expressions
8+ = help : use ` #![feature(const_generics)]` and ` #![feature(const_evaluatable_checked)]` to allow generic const expressions
99
1010error: generic parameters may not be used in const operations
1111 --> $DIR/const-arg-in-const-arg.rs:15:23
@@ -14,7 +14,7 @@ LL | let _: [u8; bar::<N>()];
1414 | ^ cannot perform const operation using `N`
1515 |
1616 = help: const parameters may only be used as standalone arguments, i.e. `N`
17- = note : use #![feature(const_generics)] and #![feature(const_evaluatable_checked)] to allow generic const expressions
17+ = help : use ` #![feature(const_generics)]` and ` #![feature(const_evaluatable_checked)]` to allow generic const expressions
1818
1919error: generic parameters may not be used in const operations
2020 --> $DIR/const-arg-in-const-arg.rs:25:23
@@ -23,7 +23,7 @@ LL | let _ = [0; bar::<N>()];
2323 | ^ cannot perform const operation using `N`
2424 |
2525 = help: const parameters may only be used as standalone arguments, i.e. `N`
26- = note : use #![feature(const_generics)] and #![feature(const_evaluatable_checked)] to allow generic const expressions
26+ = help : use ` #![feature(const_generics)]` and ` #![feature(const_evaluatable_checked)]` to allow generic const expressions
2727
2828error: generic parameters may not be used in const operations
2929 --> $DIR/const-arg-in-const-arg.rs:30:24
@@ -32,7 +32,7 @@ LL | let _: Foo<{ foo::<T>() }>;
3232 | ^ cannot perform const operation using `T`
3333 |
3434 = note: type parameters may not be used in const expressions
35- = note : use #![feature(const_generics)] and #![feature(const_evaluatable_checked)] to allow generic const expressions
35+ = help : use ` #![feature(const_generics)]` and ` #![feature(const_evaluatable_checked)]` to allow generic const expressions
3636
3737error: generic parameters may not be used in const operations
3838 --> $DIR/const-arg-in-const-arg.rs:31:24
@@ -41,7 +41,7 @@ LL | let _: Foo<{ bar::<N>() }>;
4141 | ^ cannot perform const operation using `N`
4242 |
4343 = help: const parameters may only be used as standalone arguments, i.e. `N`
44- = note : use #![feature(const_generics)] and #![feature(const_evaluatable_checked)] to allow generic const expressions
44+ = help : use ` #![feature(const_generics)]` and ` #![feature(const_evaluatable_checked)]` to allow generic const expressions
4545
4646error: generic parameters may not be used in const operations
4747 --> $DIR/const-arg-in-const-arg.rs:36:27
@@ -50,7 +50,7 @@ LL | let _ = Foo::<{ foo::<T>() }>;
5050 | ^ cannot perform const operation using `T`
5151 |
5252 = note: type parameters may not be used in const expressions
53- = note : use #![feature(const_generics)] and #![feature(const_evaluatable_checked)] to allow generic const expressions
53+ = help : use ` #![feature(const_generics)]` and ` #![feature(const_evaluatable_checked)]` to allow generic const expressions
5454
5555error: generic parameters may not be used in const operations
5656 --> $DIR/const-arg-in-const-arg.rs:37:27
@@ -59,7 +59,7 @@ LL | let _ = Foo::<{ bar::<N>() }>;
5959 | ^ cannot perform const operation using `N`
6060 |
6161 = help: const parameters may only be used as standalone arguments, i.e. `N`
62- = note : use #![feature(const_generics)] and #![feature(const_evaluatable_checked)] to allow generic const expressions
62+ = help : use ` #![feature(const_generics)]` and ` #![feature(const_evaluatable_checked)]` to allow generic const expressions
6363
6464error[E0658]: a non-static lifetime is not allowed in a `const`
6565 --> $DIR/const-arg-in-const-arg.rs:16:23
0 commit comments