2017-08-02 22:29:28 +08:00
|
|
|
# Nested Chapter
|
|
|
|
|
|
|
|
|
|
This file has some testable code.
|
|
|
|
|
|
|
|
|
|
```rust
|
|
|
|
|
assert!($TEST_STATUS);
|
2017-09-01 16:54:57 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Some Section
|
2019-02-28 20:44:55 -05:00
|
|
|
|
|
|
|
|
```rust
|
|
|
|
|
{{#include nested-test.rs}}
|
|
|
|
|
```
|
2019-10-05 18:27:03 -04:00
|
|
|
|
|
|
|
|
## Anchors include the part of a file between special comments
|
|
|
|
|
|
|
|
|
|
```rust
|
|
|
|
|
{{#include nested-test-with-anchors.rs:myanchor}}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Rustdoc include adds the rest of the file as hidden
|
|
|
|
|
|
|
|
|
|
```rust
|
|
|
|
|
{{#rustdoc_include partially-included-test.rs:5:7}}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Rustdoc include works with anchors too
|
|
|
|
|
|
|
|
|
|
```rust
|
|
|
|
|
{{#rustdoc_include partially-included-test-with-anchors.rs:rustdoc-include-anchor}}
|
|
|
|
|
```
|