@@ -5,7 +5,7 @@ LL | let _: [u8; foo::<T>()];
5
5
| ^ cannot perform const operation using `T`
6
6
|
7
7
= 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
9
9
10
10
error: generic parameters may not be used in const operations
11
11
--> $DIR/const-arg-in-const-arg.rs:15:23
@@ -14,7 +14,7 @@ LL | let _: [u8; bar::<N>()];
14
14
| ^ cannot perform const operation using `N`
15
15
|
16
16
= 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
18
18
19
19
error: generic parameters may not be used in const operations
20
20
--> $DIR/const-arg-in-const-arg.rs:25:23
@@ -23,7 +23,7 @@ LL | let _ = [0; bar::<N>()];
23
23
| ^ cannot perform const operation using `N`
24
24
|
25
25
= 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
27
27
28
28
error: generic parameters may not be used in const operations
29
29
--> $DIR/const-arg-in-const-arg.rs:30:24
@@ -32,7 +32,7 @@ LL | let _: Foo<{ foo::<T>() }>;
32
32
| ^ cannot perform const operation using `T`
33
33
|
34
34
= 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
36
36
37
37
error: generic parameters may not be used in const operations
38
38
--> $DIR/const-arg-in-const-arg.rs:31:24
@@ -41,7 +41,7 @@ LL | let _: Foo<{ bar::<N>() }>;
41
41
| ^ cannot perform const operation using `N`
42
42
|
43
43
= 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
45
45
46
46
error: generic parameters may not be used in const operations
47
47
--> $DIR/const-arg-in-const-arg.rs:36:27
@@ -50,7 +50,7 @@ LL | let _ = Foo::<{ foo::<T>() }>;
50
50
| ^ cannot perform const operation using `T`
51
51
|
52
52
= 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
54
54
55
55
error: generic parameters may not be used in const operations
56
56
--> $DIR/const-arg-in-const-arg.rs:37:27
@@ -59,7 +59,7 @@ LL | let _ = Foo::<{ bar::<N>() }>;
59
59
| ^ cannot perform const operation using `N`
60
60
|
61
61
= 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
63
63
64
64
error[E0658]: a non-static lifetime is not allowed in a `const`
65
65
--> $DIR/const-arg-in-const-arg.rs:16:23
0 commit comments