Skip to content

Commit af2b4b9

Browse files
committed
Show an example of using multiple ignore attributes
1 parent 7251b46 commit af2b4b9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/doc/rustdoc/src/write-documentation/documentation-tests.md

+9
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,15 @@ struct Foo;
442442

443443
This doctest will not be built for targets such as `x86_64-unknown-linux-gnu`.
444444

445+
Multiple ignore attributes can be specified to ignore multiple targets:
446+
447+
```rust
448+
/// ```ignore-x86_64,ignore-windows
449+
/// assert!(2 == 2);
450+
/// ```
451+
struct Foo;
452+
```
453+
445454
If you want to preserve backwards compatibility for older versions of rustdoc,
446455
you can specify both `ignore` and `ignore-`, such as:
447456

0 commit comments

Comments
 (0)