about summary refs log tree commit diff
path: root/src/doc/tutorial.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/tutorial.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/tutorial.md')
-rw-r--r--src/doc/tutorial.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md
index 917704a2faa..3b4164ffbc6 100644
--- a/src/doc/tutorial.md
+++ b/src/doc/tutorial.md
@@ -774,6 +774,7 @@ fn point_from_direction(dir: Direction) -> Point {
 Enum variants may also be structs. For example:
 
 ~~~~
+# #![feature(struct_variant)]
 use std::f64;
 # struct Point { x: f64, y: f64 }
 # fn square(x: f64) -> f64 { x * x }
@@ -789,6 +790,7 @@ fn area(sh: Shape) -> f64 {
         }
     }
 }
+# fn main() {}
 ~~~~
 
 > *Note:* This feature of the compiler is currently gated behind the
@@ -3046,6 +3048,7 @@ use farm::{chicken, cow};
 2. Import everything in a module with a wildcard:
 
 ~~~
+# #![feature(globs)]
 use farm::*;
 # mod farm {
 #     pub fn cow() { println!("Bat-chicken? What a stupid name!") }