Skip to content

Commit 4701fa2

Browse files
Add example
1 parent 5ddc4f9 commit 4701fa2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tests/compiletest.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,10 @@ The attribute takes the following arguments:
203203
This can be useful to ensure that a test is actually exercising the deserialization
204204
logic for a particular query result. This can be combined with `except`.
205205

206-
[`tests/incremental`]: https://github.com/rust-lang/rust/tree/HEAD/tests/incremental
206+
A simple example of a test using `rustc_clean` is the [hello_world test](#helloworld).
207207

208+
[`tests/incremental`]: https://github.com/rust-lang/rust/tree/HEAD/tests/incremental
209+
[`helloworld`]: https://github.com/rust-lang/rust/tree/HEAD/tests/incremental/hello_world.rs
208210

209211
### Debuginfo tests
210212

0 commit comments

Comments
 (0)