blob: 3ab1aa2367f1c637eecf4d3428f6204da7d6492b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
error[E0658]: const generics are unstable (see issue #44580)
--> $DIR/feature-gate-const_generics.rs:1:14
|
LL | fn foo<const X: ()>() {} //~ ERROR const generics are unstable
| ^
|
= help: add #![feature(const_generics)] to the crate attributes to enable
error[E0658]: const generics are unstable (see issue #44580)
--> $DIR/feature-gate-const_generics.rs:4:18
|
LL | struct Foo<const X: usize>([(); X]); //~ ERROR const generics are unstable
| ^
|
= help: add #![feature(const_generics)] to the crate attributes to enable
error: const generics in any position are currently unsupported
--> $DIR/feature-gate-const_generics.rs:1:14
|
LL | fn foo<const X: ()>() {} //~ ERROR const generics are unstable
| ^
error: const generics in any position are currently unsupported
--> $DIR/feature-gate-const_generics.rs:4:18
|
LL | struct Foo<const X: usize>([(); X]); //~ ERROR const generics are unstable
| ^
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0658`.
|