Open gnzlbg opened 4 years ago
One can't be generic over extern "ABI":
extern "ABI"
extern "C" fn foo() {} extern "Rust" fn bar() {} fn baz<T: ??? Fn()>(t: T) { } baz(foo); baz(bar);
This is similar to being generic over #[target_feature] (target-features are part of the ABI, or at least affect it).
#[target_feature]
One can't be generic over
extern "ABI"
:This is similar to being generic over
#[target_feature]
(target-features are part of the ABI, or at least affect it).