Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
lint
/
opaque-ty-ffi-unsafe.rs
blob: b7cc38e99fc37bdddacf11c89dfb60a9c5bdee91 [
file
] [
log
] [
blame
]
#![
feature
(
type_alias_impl_trait
)]
#![
deny
(
improper_ctypes
)]
type
A
=
impl
Fn
();
pub
fn
ret_closure
()
->
A
{
||
{}
}
extern
"C"
{
pub
fn
a
(
_
:
A
);
//~^ ERROR `extern` block uses type `A`, which is not FFI-safe [improper_ctypes]
}
fn
main
()
{}