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