2017-08-02 22:29:28 +08:00
|
|
|
# Nested Chapter
|
|
|
|
|
|
|
|
This file has some testable code.
|
|
|
|
|
|
|
|
```rust
|
|
|
|
assert!($TEST_STATUS);
|
2017-09-02 07:54:57 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
## Some Section
|
2019-03-01 09:44:55 +08:00
|
|
|
|
|
|
|
```rust
|
|
|
|
{{#include nested-test.rs}}
|
|
|
|
```
|
2019-10-06 06:27:03 +08: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}}
|
|
|
|
```
|