2022-07-04 23:44:41 +00:00
|
|
|
error: `f32` is forbidden as the type of a const generic parameter
|
2024-07-14 13:38:51 +01:00
|
|
|
--> $DIR/float-generic.rs:7:17
|
2022-07-04 23:44:41 +00:00
|
|
|
|
|
|
|
|
LL | fn foo<const F: f32>() {}
|
|
|
|
| ^^^
|
|
|
|
|
|
2024-09-29 15:28:11 -05:00
|
|
|
= note: the only supported types are integers, `bool`, and `char`
|
2022-07-04 23:44:41 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2022-07-04 23:44:41 +00:00
|
|
|
|