blob: a08ebfb0d9766565029bba2a93332d92fa3e7455 (
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
|
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
--> $DIR/const-fn-with-const-param.rs:1:12
|
LL | #![feature(const_generics)]
| ^^^^^^^^^^^^^^
error: const parameters are not permitted in `const fn`
--> $DIR/const-fn-with-const-param.rs:4:1
|
LL | / const fn const_u32_identity<const X: u32>() -> u32 {
LL | | //~^ ERROR const parameters are not permitted in `const fn`
LL | | //~^^ ERROR const generics in any position are currently unsupported
LL | | X
LL | | }
| |_^
error: const generics in any position are currently unsupported
--> $DIR/const-fn-with-const-param.rs:4:35
|
LL | const fn const_u32_identity<const X: u32>() -> u32 {
| ^
error: aborting due to 2 previous errors
|