about summary refs log tree commit diff
path: root/src/test/run-pass
diff options
context:
space:
mode:
authorMichael Bradshaw <mjbshaw@google.com>2018-09-26 14:46:14 -0700
committerMichael Bradshaw <mjbshaw@google.com>2018-09-26 14:46:14 -0700
commit2c3c8822e057c4ed972d0ce736b089c11afeaac3 (patch)
tree57e2fb72f40aee67dc350095a142941fe79009c9 /src/test/run-pass
parentc0769545b0c2d9c1891b3d6c58de21ddb765b9f1 (diff)
downloadrust-2c3c8822e057c4ed972d0ce736b089c11afeaac3.tar.gz
rust-2c3c8822e057c4ed972d0ce736b089c11afeaac3.zip
Gate const core::mem::needs_drop behind const_needs_drop
Diffstat (limited to 'src/test/run-pass')
-rw-r--r--src/test/run-pass/const-needs_drop.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/run-pass/const-needs_drop.rs b/src/test/run-pass/const-needs_drop.rs
index 2e381593b77..edf3a6b3dcd 100644
--- a/src/test/run-pass/const-needs_drop.rs
+++ b/src/test/run-pass/const-needs_drop.rs
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![feature(const_needs_drop)]
+
 use std::mem;
 
 struct Trivial(u8, f32);