Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upUnique function types are not unique enough #23733
Comments
This comment has been minimized.
This comment has been minimized.
|
Related to #19925 |
steveklabnik
added
A-typesystem
A-traits
labels
Mar 27, 2015
huonw
added
I-nominated
T-compiler
labels
Jan 8, 2016
nikomatsakis
referenced this issue
Jan 14, 2016
Closed
Set transmute from fn item to type fn lint a hard error #19925
This comment has been minimized.
This comment has been minimized.
|
Duplicate of #19925 basically, which is already P-high (but hasn't happened...sadly). |
nikomatsakis
closed this
Jan 14, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
petrochenkov commentedMar 26, 2015
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