9 lines
152 B
Rust
9 lines
152 B
Rust
// -*- rust -*-
|
|
|
|
unsafe fn f() { return; }
|
|
|
|
fn main() {
|
|
let x = f; //~ ERROR access to unsafe function requires unsafe function or block
|
|
x();
|
|
}
|