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)]
1
7
#![stable(since = "1.0.0", feature = "test")]
8
+
2
9
#[unstable(feature = "_unstable_fn")] // invalid
3
10
fn _unstable_fn() {}
11
+
4
12
#[rustc_const_unstable(feature = "_unstable_const_fn")] // invalid
5
13
fn _unstable_const_fn() {}
6
14
```
@@ -10,8 +18,10 @@ To fix the issue you need to provide the `issue` field.
10
18
```
11
19
#![feature(staged_api)]
12
20
#![stable(since = "1.0.0", feature = "test")]
21
+
13
22
#[unstable(feature = "_unstable_fn", issue = "none")] // ok!
14
23
fn _unstable_fn() {}
24
+
15
25
#[rustc_const_unstable(
16
26
feature = "_unstable_const_fn",
17
27
issue = "none"
You can’t perform that action at this time.
0 commit comments