summaryrefslogtreecommitdiffstats
path: root/tests/ui/ffi_const.rs
blob: 7aeb5a49a1b58a5be8ff5f799e5d5c4b8fb1c5f1 (plain)
1
2
3
4
5
#![feature(ffi_const)]
#![crate_type = "lib"]

#[ffi_const] //~ ERROR `#[ffi_const]` may only be used on foreign functions
pub fn foo() {}