From 7b84b62d290f9776f8ee8d327b38398a27f923f9 Mon Sep 17 00:00:00 2001 From: Jesus Rubio Date: Tue, 9 Feb 2021 14:09:19 +0100 Subject: [PATCH] Lost text re-added --- compiler/rustc_error_codes/src/error_codes/E0547.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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"