mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-25 06:03:16 +00:00
975152ce30
Nemo157 rebase notes: Migrated the changes to the lint into fluent
13 lines
221 B
Rust
13 lines
221 B
Rust
// 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() {}
|