Skip to content

Commit a59de37

Browse files
committed
Fix doc tests
1 parent f0213d8 commit a59de37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/trpl/associated-constants.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
```rust
5+
```rust,ignore
66
#![feature(associated_consts)]
77
88
trait Foo {
@@ -41,7 +41,7 @@ error: not all trait items implemented, missing: `ID` [E0046]
4141

4242
A default value can be implemented as well:
4343

44-
```rust
44+
```rust,ignore
4545
#![feature(associated_consts)]
4646
4747
trait Foo {
@@ -68,7 +68,7 @@ add our own definition.
6868
Associated constants don’t have to be associated with a trait. An `impl` block
6969
for a `struct` works fine too:
7070

71-
```rust
71+
```rust,ignore
7272
#![feature(associated_consts)]
7373
7474
struct Foo;

0 commit comments

Comments
 (0)