e8a0e592da
- blocks inherit unsafety - remove the --check-unsafe flag - add unsafe annotations where needed to get things to compile
10 lines
180 B
Rust
10 lines
180 B
Rust
// -*- rust -*-
|
|
// error-pattern: unsafe functions can only be called
|
|
|
|
unsafe fn f(x: int, y: int) -> int { ret x + y; }
|
|
|
|
fn main() {
|
|
let x = bind f(3, _);
|
|
let y = x(4);
|
|
}
|