Skip to content

Commit

Permalink
test: fix issue 2526 'unsafe' block-keyword, r=burningtree.
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Jan 24, 2013
1 parent cb1f957 commit 721c174
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/auxiliary/issue-2526.rs
Expand Up @@ -35,8 +35,10 @@ fn arc<T: Const>(_data: T) -> arc_destruct<T> {
arc_destruct(0)
}

fn init() -> arc_destruct<context_res> unsafe {
arc(context_res())
fn init() -> arc_destruct<context_res> {
unsafe {
arc(context_res())
}
}

struct context_res {
Expand Down

0 comments on commit 721c174

Please sign in to comment.