Skip to content

Commit 4a5fb4b

Browse files
committed
Add necessary feature gate opt-in for the pushpop_unsafe test.
1 parent bb95235 commit 4a5fb4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/compile-fail/pushpop-unsafe-rejects.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// positive number of pushes in the stack, or if we are within a
1414
// normal `unsafe` block, but otherwise cannot.
1515

16+
#![feature(pushpop_unsafe)]
17+
1618
static mut X: i32 = 0;
1719

1820
unsafe fn f() { X += 1; return; }

0 commit comments

Comments
 (0)