32 lines
534 B
Markdown
32 lines
534 B
Markdown
# Nested Chapter
|
|
|
|
This file has some testable code.
|
|
|
|
```rust
|
|
assert!($TEST_STATUS);
|
|
```
|
|
|
|
## Some Section
|
|
|
|
```rust
|
|
{{#include nested-test.rs}}
|
|
```
|
|
|
|
## 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}}
|
|
```
|