2020-10-01 20:21:15 -05:00
|
|
|
error: `&'static ()` is forbidden as the type of a const generic parameter
|
2024-07-14 07:38:51 -05:00
|
|
|
--> $DIR/transmute-const-param-static-reference.rs:9:23
|
2020-10-01 20:21:15 -05:00
|
|
|
|
|
|
|
|
LL | struct Const<const P: &'static ()>;
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: the only supported types are integers, `bool` and `char`
|
2024-03-07 16:09:00 -06:00
|
|
|
help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
|
|
|
|
|
|
|
|
|
LL + #![feature(adt_const_params)]
|
|
|
|
|
|
2024-07-14 07:38:51 -05:00
|
|
|
help: add `#![feature(unsized_const_params)]` to the crate attributes to enable references to implement the `ConstParamTy` trait
|
|
|
|
|
|
|
|
|
LL + #![feature(unsized_const_params)]
|
|
|
|
|
|
2020-10-01 20:21:15 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2020-10-01 20:21:15 -05:00
|
|
|
|