blob: ca08eb23a57eb36ef99bb38c6096488783a749b9 (
plain)
1
2
3
4
5
6
7
8
|
#![deny(improper_ctypes_definitions)]
extern "C" fn foo<T: ?Sized + 'static>() -> Option<&'static T> {
//~^ ERROR `extern` fn uses type `Option<&T>`, which is not FFI-safe
None
}
fn main() {}
|