mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-02 19:06:05 +00:00
cbe8da0655
also repair various errors in the parser related to such blocks. rename checked_blk to default_blk to reflect the fact that it inherits its purity from the surrounding context.
19 lines
186 B
Rust
19 lines
186 B
Rust
// -*- rust -*-
|
|
//
|
|
// See also: compile-fail/unsafe-fn-called-from-safe.rs
|
|
|
|
unsafe fn f() { ret; }
|
|
|
|
fn g() {
|
|
unsafe {
|
|
f();
|
|
}
|
|
}
|
|
|
|
fn h() unsafe {
|
|
f();
|
|
}
|
|
|
|
fn main() {
|
|
}
|