Show an example of using multiple ignore attributes
This commit is contained in:
parent
7251b466a4
commit
af2b4b94ed
1 changed files with 9 additions and 0 deletions
|
|
@ -442,6 +442,15 @@ struct Foo;
|
|||
|
||||
This doctest will not be built for targets such as `x86_64-unknown-linux-gnu`.
|
||||
|
||||
Multiple ignore attributes can be specified to ignore multiple targets:
|
||||
|
||||
```rust
|
||||
/// ```ignore-x86_64,ignore-windows
|
||||
/// assert!(2 == 2);
|
||||
/// ```
|
||||
struct Foo;
|
||||
```
|
||||
|
||||
If you want to preserve backwards compatibility for older versions of rustdoc,
|
||||
you can specify both `ignore` and `ignore-`, such as:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue