2020-08-26 18:22:55 +08:00
|
|
|
error: `IceEnum` is forbidden as the type of a const generic parameter
|
2023-05-17 04:05:46 +00:00
|
|
|
--> $DIR/issue-74255.rs:18:31
|
2020-08-26 18:22:55 +08:00
|
|
|
|
|
|
|
|
|
LL | fn ice_struct_fn<const I: IceEnum>() {}
|
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
2024-09-29 15:28:11 -05:00
|
|
|
= note: the only supported types are integers, `bool`, and `char`
|
2024-03-07 22:09:00 +00:00
|
|
|
help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
|
|
|
|
|
|
|
|
|
|
|
LL + #![feature(adt_const_params)]
|
|
|
|
|
|
|
2020-08-26 18:22:55 +08:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-08-26 18:22:55 +08:00
|
|
|
|