it is also legal to call unsafe functions from other unsafe functions

This commit is contained in:
Niko Matsakis 2011-10-06 21:36:04 -07:00 committed by Brian Anderson
parent 046ca827dd
commit d207bc3a0b

View File

@ -0,0 +1,10 @@
// -*- rust -*-
//
// See also: compile-fail/unsafe-fn-called-from-safe.rs
unsafe fn f() { ret; }
unsafe fn g() {
f();
}