]> git.lizzy.rs Git - rust.git/blob - src/test/ui/ffi_const2.rs
Merge commit '4a053f206fd6799a25823c307f7d7f9d897be118' into sync-rustfmt-subtree
[rust.git] / src / test / ui / ffi_const2.rs
1 #![feature(ffi_const, ffi_pure)]
2
3 extern "C" {
4     #[ffi_pure] //~ ERROR `#[ffi_const]` function cannot be `#[ffi_pure]`
5     #[ffi_const]
6     pub fn baz();
7 }
8
9 fn main() {
10     unsafe { baz() };
11 }