Files
rust/tests/ui/unsafe/wrapping-unsafe-block-sugg.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
221 B
Rust
Raw Normal View History

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