terminology: #[feature] *enables* a feature (instead of "declaring" or "activating" it)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user