File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
compiler/rustc_error_codes/src/error_codes Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1+ The ` issue ` value is missing in a stability attribute.
2+
3+ Erroneous code example:
4+
5+ ``` compile_fail,E0547
6+ #![feature(staged_api)]
17#![stable(since = "1.0.0", feature = "test")]
8+
29#[unstable(feature = "_unstable_fn")] // invalid
310fn _unstable_fn() {}
11+
412#[rustc_const_unstable(feature = "_unstable_const_fn")] // invalid
513fn _unstable_const_fn() {}
614```
@@ -10,8 +18,10 @@ To fix the issue you need to provide the `issue` field.
1018```
1119#![feature(staged_api)]
1220#![stable(since = "1.0.0", feature = "test")]
21+
1322#[unstable(feature = "_unstable_fn", issue = "none")] // ok!
1423fn _unstable_fn() {}
24+
1525#[rustc_const_unstable(
1626 feature = "_unstable_const_fn",
1727 issue = "none"
You can’t perform that action at this time.
0 commit comments