terminology: #[feature] *enables* a feature (instead of "declaring" or "activating" it)
This commit is contained in:
parent
3ec4308f6c
commit
46ce5cbf33
21 changed files with 117 additions and 131 deletions
|
@ -1,9 +1,9 @@
|
|||
A `#![feature]` attribute was declared multiple times.
|
||||
The same feature is enabled multiple times with `#![feature]` attributes
|
||||
|
||||
Erroneous code example:
|
||||
|
||||
```compile_fail,E0636
|
||||
#![allow(stable_features)]
|
||||
#![feature(rust1)]
|
||||
#![feature(rust1)] // error: the feature `rust1` has already been declared
|
||||
#![feature(rust1)] // error: the feature `rust1` has already been enabled
|
||||
```
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#### Note: this error code is no longer emitted by the compiler.
|
||||
|
||||
A `#![feature]` attribute was declared for a feature that is stable in the
|
||||
A `#![feature]` attribute was used for a feature that is stable in the
|
||||
current edition, but not in all editions.
|
||||
|
||||
Erroneous code example:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue