rust/tests/ui/ffi_const.rs

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

6 lines
139 B
Rust
Raw Normal View History

#![feature(ffi_const)]
#![crate_type = "lib"]
#[ffi_const] //~ ERROR `#[ffi_const]` may only be used on foreign functions
pub fn foo() {}