fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: call to unsafe function is unsafe and requires unsafe block (error E0133) 2 --> $DIR/edition-2024-unsafe_op_in_unsafe_fn.rs:12:5 3 | 4LL | unsf(); 5 | ^^^^^^ call to unsafe function 6 | 7 = note: consult the function's documentation for information on how to avoid undefined behavior 8note: an unsafe function restricts its caller, but its body is safe by default 9 --> $DIR/edition-2024-unsafe_op_in_unsafe_fn.rs:11:1 10 | 11LL | unsafe fn foo() { 12 | ^^^^^^^^^^^^^^^ 13 = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default 14 15warning: 1 warning emitted 16