Skip to content

Commit 7b84b62

Browse files
committed
Lost text re-added
1 parent 4d33d41 commit 7b84b62

File tree

1 file changed

+10
-0
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+10
-0
lines changed

compiler/rustc_error_codes/src/error_codes/E0547.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
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
310
fn _unstable_fn() {}
11+
412
#[rustc_const_unstable(feature = "_unstable_const_fn")] // invalid
513
fn _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!
1423
fn _unstable_fn() {}
24+
1525
#[rustc_const_unstable(
1626
feature = "_unstable_const_fn",
1727
issue = "none"

0 commit comments

Comments
 (0)