about summary refs log tree commit diff
path: root/src/doc/rust.md
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-06-05 23:01:01 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-06-06 20:00:07 -0700
commitcc63d4c61bb83fcbcef5ccfffcd9b26b1bf2d20a (patch)
tree8794914b76f301a24e8a9f8fc603df7ca8c1b7d4 /src/doc/rust.md
parent59157631061744947df9a7751ac55fe2304e67ad (diff)
downloadrust-cc63d4c61bb83fcbcef5ccfffcd9b26b1bf2d20a.tar.gz
rust-cc63d4c61bb83fcbcef5ccfffcd9b26b1bf2d20a.zip
doc: Turn off special features for rustdoc tests
These were only used for the markdown tests, and there's no reason they should
be distinct from the other tests.
Diffstat (limited to 'src/doc/rust.md')
-rw-r--r--src/doc/rust.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/doc/rust.md b/src/doc/rust.md
index 06c9da2fe0e..619e24af360 100644
--- a/src/doc/rust.md
+++ b/src/doc/rust.md
@@ -1260,6 +1260,8 @@ a = Cat;
 Enumeration constructors can have either named or unnamed fields:
 
 ~~~~
+# #![feature(struct_variant)]
+# fn main() {
 enum Animal {
     Dog (String, f64),
     Cat { name: String, weight: f64 }
@@ -1267,6 +1269,7 @@ enum Animal {
 
 let mut a: Animal = Dog("Cocoa".to_string(), 37.2);
 a = Cat { name: "Spotty".to_string(), weight: 2.7 };
+# }
 ~~~~
 
 In this example, `Cat` is a _struct-like enum variant_,