Unique function types are not unique enough #23733
Labels
A-trait-system
Area: Trait system
A-type-system
Area: Type system
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In this example
functions
f::<u8>
andf::<u16>
have the same typefn() {f}
tied to the id of the generic function item, but different function pointers. So, in general case a function pointer can't be unambiguosly obtained from function item's type.cc @nikomatsakis
The text was updated successfully, but these errors were encountered: