Fix doc tests

This commit is contained in:
Brian Anderson 2015-05-13 20:07:33 -07:00
parent f0213d8ffb
commit a59de37e99

View file

@ -2,7 +2,7 @@
With the `associated_consts` feature, you can define constants like this:
```rust
```rust,ignore
#![feature(associated_consts)]
trait Foo {
@ -41,7 +41,7 @@ error: not all trait items implemented, missing: `ID` [E0046]
A default value can be implemented as well:
```rust
```rust,ignore
#![feature(associated_consts)]
trait Foo {
@ -68,7 +68,7 @@ add our own definition.
Associated constants dont have to be associated with a trait. An `impl` block
for a `struct` works fine too:
```rust
```rust,ignore
#![feature(associated_consts)]
struct Foo;