2022-07-23 20:09:52 +00:00
|
|
|
error[E0741]: using function pointers as const generic parameters is forbidden
|
2020-11-17 11:44:21 +01:00
|
|
|
--> $DIR/fn-const-param-call.rs:11:25
|
2020-08-09 06:19:57 +00:00
|
|
|
|
|
|
|
|
LL | struct Wrapper<const F: fn() -> u32>;
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2022-07-23 20:09:52 +00:00
|
|
|
error[E0741]: using function pointers as const generic parameters is forbidden
|
2020-11-17 11:44:21 +01:00
|
|
|
--> $DIR/fn-const-param-call.rs:13:15
|
2020-08-09 06:19:57 +00:00
|
|
|
|
|
|
|
|
LL | impl<const F: fn() -> u32> Wrapper<F> {
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2022-07-23 20:09:52 +00:00
|
|
|
For more information about this error, try `rustc --explain E0741`.
|