about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJesus Rubio <jesusprubio@gmail.com>2021-02-09 14:09:19 +0100
committerJesus Rubio <jesusprubio@gmail.com>2021-02-09 14:09:19 +0100
commit7b84b62d290f9776f8ee8d327b38398a27f923f9 (patch)
tree830f85c66f58198377250146d08ca9818ef3815a
parent4d33d41ef3a3a6f01ab7211b5fc6acbd758bf619 (diff)
downloadrust-7b84b62d290f9776f8ee8d327b38398a27f923f9.tar.gz
rust-7b84b62d290f9776f8ee8d327b38398a27f923f9.zip
Lost text re-added
-rw-r--r--compiler/rustc_error_codes/src/error_codes/E0547.md10
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"