rust/src/test/ui/ffi_const2.rs

12 lines
191 B
Rust
Raw Normal View History

#![feature(ffi_const, ffi_pure)]
extern {
#[ffi_pure] //~ ERROR `#[ffi_const]` function cannot be `#[ffi_pure]`
#[ffi_const]
pub fn baz();
}
fn main() {
unsafe { baz() };
}