From 4a5fb4bd2a4c9d063bfe4868c90ff005ff3d3a62 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Tue, 21 Jul 2015 14:31:30 +0200 Subject: [PATCH] Add necessary feature gate opt-in for the pushpop_unsafe test. --- src/test/compile-fail/pushpop-unsafe-rejects.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/compile-fail/pushpop-unsafe-rejects.rs b/src/test/compile-fail/pushpop-unsafe-rejects.rs index b009a670da1..ad6fd5094db 100644 --- a/src/test/compile-fail/pushpop-unsafe-rejects.rs +++ b/src/test/compile-fail/pushpop-unsafe-rejects.rs @@ -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; }