10 lines
201 B
Rust
10 lines
201 B
Rust
// -*- rust -*-
|
|
|
|
unsafe fn f(x: int, y: int) -> int { ret x + y; }
|
|
|
|
fn main() {
|
|
let x = bind f(3, _);
|
|
//!^ ERROR access to unsafe function requires unsafe function or block
|
|
let y = x(4);
|
|
}
|