]> git.lizzy.rs Git - rust.git/commitdiff
Add necessary feature gate opt-in for the pushpop_unsafe test.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 21 Jul 2015 12:31:30 +0000 (14:31 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Wed, 22 Jul 2015 13:34:00 +0000 (15:34 +0200)
src/test/compile-fail/pushpop-unsafe-rejects.rs

index b009a670da1e13215d1ed9001a50d9ade95a2d0a..ad6fd5094db4a40e10bdc72fd753f0963d92e2ed 100644 (file)
@@ -13,6 +13,8 @@
 // positive number of pushes in the stack, or if we are within a
 // normal `unsafe` block, but otherwise cannot.
 
+#![feature(pushpop_unsafe)]
+
 static mut X: i32 = 0;
 
 unsafe fn f() { X += 1; return; }