Skip to content

Commit

Permalink
Fix doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed May 14, 2015
1 parent f0213d8 commit a59de37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/doc/trpl/associated-constants.md
Expand Up @@ -2,7 +2,7 @@

With the `associated_consts` feature, you can define constants like this:

```rust
```rust,ignore
#![feature(associated_consts)]
trait Foo {
Expand Down Expand Up @@ -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 {
Expand All @@ -68,7 +68,7 @@ add our own definition.
Associated constants don’t have to be associated with a trait. An `impl` block
for a `struct` works fine too:

```rust
```rust,ignore
#![feature(associated_consts)]
struct Foo;
Expand Down

0 comments on commit a59de37

Please sign in to comment.