Const generics with function pointers produces linker error. #62395
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
F-const_generics
`#![feature(const_generics)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When attempting to compile a program using const generic function pointers, I get the following linker error:
Source:
I'm not sure what the intended behavior should be here, but I was expecting to be able to call the function that I passed as a const generic parameter, which the compiler seems to accept as valid, but is failing during the linking step.
The text was updated successfully, but these errors were encountered: