File tree 6 files changed +69
-3
lines changed
6 files changed +69
-3
lines changed Original file line number Diff line number Diff line change 3
3
4
4
#[ ffi_const] //~ ERROR `#[ffi_const]` may only be used on foreign functions
5
5
pub fn foo ( ) { }
6
+
7
+ #[ ffi_const] //~ ERROR `#[ffi_const]` may only be used on foreign functions
8
+ macro_rules! bar {
9
+ ( ) => ( )
10
+ }
11
+
12
+ extern "C" {
13
+ #[ ffi_const] //~ ERROR `#[ffi_const]` may only be used on foreign functions
14
+ static INT : i32 ;
15
+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,18 @@ error[E0756]: `#[ffi_const]` may only be used on foreign functions
4
4
LL | #[ffi_const]
5
5
| ^^^^^^^^^^^^
6
6
7
- error: aborting due to previous error
7
+ error[E0756]: `#[ffi_const]` may only be used on foreign functions
8
+ --> $DIR/ffi_const.rs:7:1
9
+ |
10
+ LL | #[ffi_const]
11
+ | ^^^^^^^^^^^^
12
+
13
+ error[E0756]: `#[ffi_const]` may only be used on foreign functions
14
+ --> $DIR/ffi_const.rs:13:5
15
+ |
16
+ LL | #[ffi_const]
17
+ | ^^^^^^^^^^^^
18
+
19
+ error: aborting due to 3 previous errors
8
20
9
21
For more information about this error, try `rustc --explain E0756`.
Original file line number Diff line number Diff line change 3
3
4
4
#[ ffi_pure] //~ ERROR `#[ffi_pure]` may only be used on foreign functions
5
5
pub fn foo ( ) { }
6
+
7
+ #[ ffi_pure] //~ ERROR `#[ffi_pure]` may only be used on foreign functions
8
+ macro_rules! bar {
9
+ ( ) => ( )
10
+ }
11
+
12
+ extern "C" {
13
+ #[ ffi_pure] //~ ERROR `#[ffi_pure]` may only be used on foreign functions
14
+ static INT : i32 ;
15
+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,18 @@ error[E0755]: `#[ffi_pure]` may only be used on foreign functions
4
4
LL | #[ffi_pure]
5
5
| ^^^^^^^^^^^
6
6
7
- error: aborting due to previous error
7
+ error[E0755]: `#[ffi_pure]` may only be used on foreign functions
8
+ --> $DIR/ffi_pure.rs:7:1
9
+ |
10
+ LL | #[ffi_pure]
11
+ | ^^^^^^^^^^^
12
+
13
+ error[E0755]: `#[ffi_pure]` may only be used on foreign functions
14
+ --> $DIR/ffi_pure.rs:13:5
15
+ |
16
+ LL | #[ffi_pure]
17
+ | ^^^^^^^^^^^
18
+
19
+ error: aborting due to 3 previous errors
8
20
9
21
For more information about this error, try `rustc --explain E0755`.
Original file line number Diff line number Diff line change 3
3
4
4
#[ ffi_returns_twice] //~ ERROR `#[ffi_returns_twice]` may only be used on foreign functions
5
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
+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,18 @@ error[E0724]: `#[ffi_returns_twice]` may only be used on foreign functions
4
4
LL | #[ffi_returns_twice]
5
5
| ^^^^^^^^^^^^^^^^^^^^
6
6
7
- error: aborting due to previous error
7
+ error[E0724]: `#[ffi_returns_twice]` may only be used on foreign functions
8
+ --> $DIR/ffi_returns_twice.rs:7:1
9
+ |
10
+ LL | #[ffi_returns_twice]
11
+ | ^^^^^^^^^^^^^^^^^^^^
12
+
13
+ error[E0724]: `#[ffi_returns_twice]` may only be used on foreign functions
14
+ --> $DIR/ffi_returns_twice.rs:13:5
15
+ |
16
+ LL | #[ffi_returns_twice]
17
+ | ^^^^^^^^^^^^^^^^^^^^
18
+
19
+ error: aborting due to 3 previous errors
8
20
9
21
For more information about this error, try `rustc --explain E0724`.
You can’t perform that action at this time.
0 commit comments