Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
lint
/
opaque-ty-ffi-unsafe.rs
blob: 3cbc084ecae7cbd524c932b2790525204039fd67 [
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 `impl std::ops::Fn<()>`, which is not FFI-safe
}
fn
main
()
{}