diff options
| author | Jesus Rubio <jesusprubio@gmail.com> | 2021-02-09 14:09:19 +0100 |
|---|---|---|
| committer | Jesus Rubio <jesusprubio@gmail.com> | 2021-02-09 14:09:19 +0100 |
| commit | 7b84b62d290f9776f8ee8d327b38398a27f923f9 (patch) | |
| tree | 830f85c66f58198377250146d08ca9818ef3815a | |
| parent | 4d33d41ef3a3a6f01ab7211b5fc6acbd758bf619 (diff) | |
| download | rust-7b84b62d290f9776f8ee8d327b38398a27f923f9.tar.gz rust-7b84b62d290f9776f8ee8d327b38398a27f923f9.zip | |
Lost text re-added
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0547.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0547.md b/compiler/rustc_error_codes/src/error_codes/E0547.md index 7a719850040..ca14f3865e1 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0547.md +++ b/compiler/rustc_error_codes/src/error_codes/E0547.md @@ -1,6 +1,14 @@ +The `issue` value is missing in a stability attribute. + +Erroneous code example: + +```compile_fail,E0547 +#![feature(staged_api)] #![stable(since = "1.0.0", feature = "test")] + #[unstable(feature = "_unstable_fn")] // invalid fn _unstable_fn() {} + #[rustc_const_unstable(feature = "_unstable_const_fn")] // invalid fn _unstable_const_fn() {} ``` @@ -10,8 +18,10 @@ To fix the issue you need to provide the `issue` field. ``` #![feature(staged_api)] #![stable(since = "1.0.0", feature = "test")] + #[unstable(feature = "_unstable_fn", issue = "none")] // ok! fn _unstable_fn() {} + #[rustc_const_unstable( feature = "_unstable_const_fn", issue = "none" |
