rust/tests/ui/unsafe/wrapping-unsafe-block-sugg.fixed
Léo Lanteri Thauvin 975152ce30
Add MVP suggestion for unsafe_op_in_unsafe_fn
Nemo157 rebase notes: Migrated the changes to the lint into fluent
2023-06-13 15:46:54 +02:00

13 lines
231 B
Rust

// run-rustfix
#![deny(unsafe_op_in_unsafe_fn)]
unsafe fn unsf() {}
pub unsafe fn foo() { unsafe {
unsf(); //~ ERROR call to unsafe function is unsafe
unsf(); //~ ERROR call to unsafe function is unsafe
}}
fn main() {}