]> git.lizzy.rs Git - rust.git/blob - tests/ui/ffi_returns_twice.rs
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / ui / ffi_returns_twice.rs
1 #![feature(ffi_returns_twice)]
2 #![crate_type = "lib"]
3
4 #[ffi_returns_twice] //~ ERROR `#[ffi_returns_twice]` may only be used on foreign functions
5 pub fn foo() {}
6
7 #[ffi_returns_twice] //~ ERROR `#[ffi_returns_twice]` may only be used on foreign functions
8 macro_rules! bar {
9     () => ()
10 }
11
12 extern "C" {
13     #[ffi_returns_twice] //~ ERROR `#[ffi_returns_twice]` may only be used on foreign functions
14     static INT: i32;
15 }