diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-07-21 14:31:30 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-07-22 15:34:00 +0200 |
| commit | 4a5fb4bd2a4c9d063bfe4868c90ff005ff3d3a62 (patch) | |
| tree | edb25ae0bdcdeed4e86a31f18b995494c1c8345f /src | |
| parent | bb952358aa674b815f6180520eb5ddf2289e6401 (diff) | |
| download | rust-4a5fb4bd2a4c9d063bfe4868c90ff005ff3d3a62.tar.gz rust-4a5fb4bd2a4c9d063bfe4868c90ff005ff3d3a62.zip | |
Add necessary feature gate opt-in for the pushpop_unsafe test.
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/compile-fail/pushpop-unsafe-rejects.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |
