Sign in
fuchsia
/
third_party
/
rust
/
20d43d03dd27568f609d621ce44673393e838892
/
.
/
src
/
test
/
ui
/
lint
/
opaque-ty-ffi-unsafe.rs
blob: 25d5f8ec68aa0db0f600bf69a9bea428e039c940 [
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
}
fn
main
()
{}