From e9019101a82dd7f61dcdcd52bcc0123d5ed25d22 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 13 Mar 2015 15:28:35 -0700 Subject: Add #![feature] attributes to doctests --- src/doc/trpl/method-syntax.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/doc/trpl/method-syntax.md') diff --git a/src/doc/trpl/method-syntax.md b/src/doc/trpl/method-syntax.md index 0ca42c3b12d..8cb16f7ab33 100644 --- a/src/doc/trpl/method-syntax.md +++ b/src/doc/trpl/method-syntax.md @@ -23,6 +23,7 @@ the ability to use this *method call syntax* via the `impl` keyword. Here's how it works: ```{rust} +# #![feature(core)] struct Circle { x: f64, y: f64, @@ -87,6 +88,7 @@ original example, `foo.bar().baz()`? This is called 'method chaining', and we can do it by returning `self`. ``` +# #![feature(core)] struct Circle { x: f64, y: f64, @@ -164,6 +166,7 @@ have method overloading, named arguments, or variable arguments. We employ the builder pattern instead. It looks like this: ``` +# #![feature(core)] struct Circle { x: f64, y: f64, -- cgit 1.4.1-3-g733a5