Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
86e0ff47a0d1afcbe9f0c8cdb54f60bb18da20df
/
.
/
src
/
test
/
ui
/
ffi_const2.rs
blob: 82fe8a9c91dd1f79ed8b5adea216497164c7de58 [
file
] [
log
] [
blame
]
#![
feature
(
ffi_const
,
ffi_pure
)]
extern
"C"
{
#[
ffi_pure
]
//~ ERROR `#[ffi_const]` function cannot be `#[ffi_pure]`
#[
ffi_const
]
pub
fn
baz
();
}
fn
main
()
{
unsafe
{
baz
()
};
}