summary refs log tree commit diff
path: root/src/test/compile-fail/associated-const-dead-code.rs
diff options
context:
space:
mode:
authorSean Patrick Santos <SeanPatrickSantos@gmail.com>2015-03-26 13:06:26 -0600
committerSean Patrick Santos <SeanPatrickSantos@gmail.com>2015-04-23 21:02:29 -0600
commitb1db4ec3d0a96a1e83d74fbc7f99dc3be054f4d8 (patch)
treeb716e5a1dace81b0758069179b2fbd3e283f37db /src/test/compile-fail/associated-const-dead-code.rs
parent29eb550ee6a9fd6961bb00e2680a5735aab95de1 (diff)
downloadrust-b1db4ec3d0a96a1e83d74fbc7f99dc3be054f4d8.tar.gz
rust-b1db4ec3d0a96a1e83d74fbc7f99dc3be054f4d8.zip
Feature-gate associated constants.
Diffstat (limited to 'src/test/compile-fail/associated-const-dead-code.rs')
-rw-r--r--src/test/compile-fail/associated-const-dead-code.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/compile-fail/associated-const-dead-code.rs b/src/test/compile-fail/associated-const-dead-code.rs
index 42db13f4f3b..1ed156d45f5 100644
--- a/src/test/compile-fail/associated-const-dead-code.rs
+++ b/src/test/compile-fail/associated-const-dead-code.rs
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![feature(associated_consts)]
 #![deny(dead_code)]
 
 struct MyFoo;