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 .
22
33Erroneous code example:
44
@@ -13,15 +13,15 @@ fn unstable_fn() {}
1313fn stable_fn() {}
1414```
1515
16- To fix the issue you need to provide a feature name .
16+ To fix the issue you need to provide the ` feature ` field .
1717
1818```
1919#![feature(staged_api)]
2020#![stable(since = "1.0.0", feature = "test")]
2121
22- #[unstable(feature = "unstable_fn", issue = "none")] // ok!
22+ #[unstable(feature = "unstable_fn", issue = "none")]
2323fn unstable_fn() {}
2424
25- #[stable(feature = "stable_fn", since = "1.0.0")] // ok!
25+ #[stable(feature = "stable_fn", since = "1.0.0")]
2626fn stable_fn() {}
2727```
You can’t perform that action at this time.
0 commit comments