2024-04-25 14:14:22 -05:00
|
|
|
error[E0133]: call to unsafe function `test1` is unsafe and requires unsafe function or block
|
2024-07-18 09:54:04 -05:00
|
|
|
--> $DIR/extern-items-unsafe.rs:12:5
|
2024-04-25 14:14:22 -05:00
|
|
|
|
|
2024-05-07 07:43:23 -05:00
|
|
|
LL | test1(TEST1);
|
|
|
|
| ^^^^^^^^^^^^ call to unsafe function
|
2024-04-25 14:14:22 -05:00
|
|
|
|
|
|
|
|
= note: consult the function's documentation for information on how to avoid undefined behavior
|
|
|
|
|
2024-05-07 07:43:23 -05:00
|
|
|
error[E0133]: use of extern static is unsafe and requires unsafe function or block
|
2024-07-18 09:54:04 -05:00
|
|
|
--> $DIR/extern-items-unsafe.rs:12:11
|
2024-05-07 07:43:23 -05:00
|
|
|
|
|
|
|
|
LL | test1(TEST1);
|
|
|
|
| ^^^^^ use of extern static
|
|
|
|
|
|
|
|
|
= note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2024-04-25 14:14:22 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0133`.
|