Skip to content

Commit 721c174

Browse files
committed
test: fix issue 2526 'unsafe' block-keyword, r=burningtree.
1 parent cb1f957 commit 721c174

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/auxiliary/issue-2526.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ fn arc<T: Const>(_data: T) -> arc_destruct<T> {
3535
arc_destruct(0)
3636
}
3737

38-
fn init() -> arc_destruct<context_res> unsafe {
39-
arc(context_res())
38+
fn init() -> arc_destruct<context_res> {
39+
unsafe {
40+
arc(context_res())
41+
}
4042
}
4143

4244
struct context_res {

0 commit comments

Comments
 (0)