Skip to content

Commit

Permalink
Update for cfg on generic parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jun 20, 2019
1 parent 65673ee commit cc356b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/conditional-compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ fn needs_not_foo() {
}
```

The `cfg` attribute is allowed anywhere attributes are allowed except on
generic parameters.
The `cfg` attribute is allowed anywhere attributes are allowed.

### The `cfg_attr` attribute

Expand Down Expand Up @@ -289,8 +288,7 @@ fn bewitched() {}
> is valid. This example would be equivalent to
> `#[cfg_attr(all(linux, feature ="multithreaded"), some_other_attribute)]`.
The `cfg_attr` attribute is allowed anywhere attributes are allowed except on
generic parameters.
The `cfg_attr` attribute is allowed anywhere attributes are allowed.

### The `cfg` macro

Expand Down

0 comments on commit cc356b0

Please sign in to comment.