We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 399b645 commit 0d8a071Copy full SHA for 0d8a071
compiler/rustc_error_codes/src/error_codes/E0546.md
@@ -1,4 +1,4 @@
1
-A feature name is missing.
+The `feature` value is missing in a stability attribute.
2
3
Erroneous code example:
4
@@ -13,15 +13,15 @@ fn unstable_fn() {}
13
fn stable_fn() {}
14
```
15
16
-To fix the issue you need to provide a feature name.
+To fix the issue you need to provide the `feature` field.
17
18
19
#![feature(staged_api)]
20
#![stable(since = "1.0.0", feature = "test")]
21
22
-#[unstable(feature = "unstable_fn", issue = "none")] // ok!
+#[unstable(feature = "unstable_fn", issue = "none")]
23
fn unstable_fn() {}
24
25
-#[stable(feature = "stable_fn", since = "1.0.0")] // ok!
+#[stable(feature = "stable_fn", since = "1.0.0")]
26
27
0 commit comments