summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-ffi_const.rs
blob: 9f3d783ccd69cbbdc2c56b2ae738f806e5f21cf2 (plain)
1
2
3
4
5
6
#![crate_type = "lib"]

extern "C" {
    #[ffi_const] //~ ERROR the `#[ffi_const]` attribute is an experimental feature
    pub fn foo();
}