summaryrefslogtreecommitdiffstats
path: root/tests/ui/ffi_const2.rs
blob: 82fe8a9c91dd1f79ed8b5adea216497164c7de58 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(ffi_const, ffi_pure)]

extern "C" {
    #[ffi_pure] //~ ERROR `#[ffi_const]` function cannot be `#[ffi_pure]`
    #[ffi_const]
    pub fn baz();
}

fn main() {
    unsafe { baz() };
}