2023-01-14 18:32:17 +00:00
|
|
|
error: `[u32; LEN]` is forbidden as the type of a const generic parameter
|
2020-11-17 11:44:21 +01:00
|
|
|
--> $DIR/issue-73491.rs:8:19
|
2020-08-26 18:22:55 +08:00
|
|
|
|
|
|
|
|
LL | fn hoge<const IN: [u32; LEN]>() {}
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
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
|
|
|
|