rust/tests/ui/ffi-attrs/ffi_const2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
195 B
Rust
Raw Normal View History

#![feature(ffi_const, ffi_pure)]
2020-09-01 21:12:52 +00:00
extern "C" {
#[ffi_pure] //~ ERROR `#[ffi_const]` function cannot be `#[ffi_pure]`
#[ffi_const]
pub fn baz();
}
fn main() {
unsafe { baz() };
}