2011-10-11 19:31:23 -05:00
|
|
|
// -*- rust -*-
|
|
|
|
|
2012-08-01 19:30:05 -05:00
|
|
|
unsafe fn f() { return; }
|
2011-10-11 19:31:23 -05:00
|
|
|
|
|
|
|
fn main() {
|
2012-06-30 06:23:59 -05:00
|
|
|
let x = f; //~ ERROR access to unsafe function requires unsafe function or block
|
2011-10-11 19:31:23 -05:00
|
|
|
x();
|
|
|
|
}
|