2024-05-27 15:35:34 -03:00
|
|
|
error: items in unadorned `extern` blocks cannot have safety qualifiers
|
2024-07-18 11:54:04 -03:00
|
|
|
--> $DIR/safe-unsafe-on-unadorned-extern-block.rs:8:5
|
2024-05-27 15:35:34 -03:00
|
|
|
|
|
2024-05-07 14:43:23 +02:00
|
|
|
LL | safe static TEST1: i32;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2024-06-26 08:44:59 +08:00
|
|
|
|
|
|
|
|
help: add unsafe to this `extern` block
|
|
|
|
|
|
|
|
|
LL | unsafe extern "C" {
|
|
|
|
| ++++++
|
2024-05-07 14:43:23 +02:00
|
|
|
|
|
|
|
error: items in unadorned `extern` blocks cannot have safety qualifiers
|
2024-07-18 11:54:04 -03:00
|
|
|
--> $DIR/safe-unsafe-on-unadorned-extern-block.rs:10:5
|
2024-05-07 14:43:23 +02:00
|
|
|
|
|
2024-05-27 15:35:34 -03:00
|
|
|
LL | safe fn test1(i: i32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2024-06-26 08:44:59 +08:00
|
|
|
|
|
|
|
|
help: add unsafe to this `extern` block
|
|
|
|
|
|
|
|
|
LL | unsafe extern "C" {
|
|
|
|
| ++++++
|
2024-05-27 15:35:34 -03:00
|
|
|
|
2024-05-07 14:43:23 +02:00
|
|
|
error: aborting due to 2 previous errors
|
2024-05-27 15:35:34 -03:00
|
|
|
|