mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
9 lines
306 B
Plaintext
9 lines
306 B
Plaintext
error: using function pointers as const generic parameters is forbidden
|
|
--> $DIR/issue-72352.rs:7:42
|
|
|
|
|
LL | unsafe fn unsafely_do_the_thing<const F: fn(&CStr) -> usize>(ptr: *const i8) -> usize {
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to previous error
|
|
|