blob: 31ef9e24f57675e8091632eb22391896812fa0ca (
plain)
1
2
3
4
5
6
7
8
9
|
error[E0133]: call to unsafe function `f` is unsafe and requires unsafe function or block
--> tests/ui/missing_unsafe.rs:4:12
|
4 | fn f(x: i32);
| ^ - items do not inherit unsafety from separate enclosing items
| |
| call to unsafe function
|
= note: consult the function's documentation for information on how to avoid undefined behavior
|