2020-02-11 08:19:21 +01:00
|
|
|
error: const parameters are not permitted in const functions
|
2019-02-05 17:54:23 +01:00
|
|
|
--> $DIR/const-fn-with-const-param.rs:4:1
|
|
|
|
|
|
|
2020-01-30 02:42:33 +01:00
|
|
|
LL | const fn const_u32_identity<const X: u32>() -> u32 {
|
|
|
|
|
| ^----
|
|
|
|
|
| |
|
2020-02-11 08:19:21 +01:00
|
|
|
| _`const` because of this
|
2020-01-30 02:42:33 +01:00
|
|
|
| |
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | |
|
2019-02-05 17:54:23 +01:00
|
|
|
LL | | X
|
|
|
|
|
LL | | }
|
|
|
|
|
| |_^
|
|
|
|
|
|
2019-07-29 02:01:57 +02:00
|
|
|
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)]
|
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
|
|
|
|
|
2019-02-20 01:20:22 +00:00
|
|
|
error: aborting due to previous error
|
2019-02-05 17:54:23 +01:00
|
|
|
|