You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some restrictions on the use of generic types that can safely be removed. For example:
fn foo<T>(val: T) {
val.to_mem() // ERROR: can't call to_mem on generic type
}
We can just allow this, and if T is a primitive type, ignore the function call. Or we could eliminate the to_mem function and this problem would go away.
I think there are others; please add to this issue or create other issues.
The text was updated successfully, but these errors were encountered:
What is wrong?
There are some restrictions on the use of generic types that can safely be removed. For example:
We can just allow this, and if T is a primitive type, ignore the function call. Or we could eliminate the to_mem function and this problem would go away.
I think there are others; please add to this issue or create other issues.
The text was updated successfully, but these errors were encountered: