File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/rustc_error_codes/src/error_codes Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- A feature name is missing.
1
+ The ` feature ` value is missing in a stability attribute .
2
2
3
3
Erroneous code example:
4
4
@@ -13,15 +13,15 @@ fn unstable_fn() {}
13
13
fn stable_fn() {}
14
14
```
15
15
16
- To fix the issue you need to provide a feature name .
16
+ To fix the issue you need to provide the ` feature ` field .
17
17
18
18
```
19
19
#![feature(staged_api)]
20
20
#![stable(since = "1.0.0", feature = "test")]
21
21
22
- #[unstable(feature = "unstable_fn", issue = "none")] // ok!
22
+ #[unstable(feature = "unstable_fn", issue = "none")]
23
23
fn unstable_fn() {}
24
24
25
- #[stable(feature = "stable_fn", since = "1.0.0")] // ok!
25
+ #[stable(feature = "stable_fn", since = "1.0.0")]
26
26
fn stable_fn() {}
27
27
```
You can’t perform that action at this time.
0 commit comments