Skip to content

Commit d3f246c

Browse files
committed
Document the ignore function attribute.
This is very brief, without any usage or motivation. There's more information in the 'Testing' section of the Rust Book.
1 parent 3a64d81 commit d3f246c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/attributes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ type int8_t = i8;
9393
item](#language-items) for more details.
9494
- `test` - indicates that this function is a test function, to only be compiled
9595
in case of `--test`.
96+
- `ignore` - indicates that this test function is disabled.
9697
- `should_panic` - indicates that this test function should panic, inverting the success condition.
9798
- `cold` - The function is unlikely to be executed, so optimize it (and calls
9899
to it) differently.

0 commit comments

Comments
 (0)