7 lines
112 B
Rust
7 lines
112 B
Rust
unsafe fn f() { return; }
|
|
|
|
fn main() {
|
|
let x = f;
|
|
x(); //~ ERROR call to unsafe function is unsafe
|
|
}
|