Skip to content

Commit 0d8a071

Browse files
committed
Improve long explanation for E0546
1 parent 399b645 commit 0d8a071

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+4
-4
lines changed

compiler/rustc_error_codes/src/error_codes/E0546.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
A feature name is missing.
1+
The `feature` value is missing in a stability attribute.
22

33
Erroneous code example:
44

@@ -13,15 +13,15 @@ fn unstable_fn() {}
1313
fn stable_fn() {}
1414
```
1515

16-
To fix the issue you need to provide a feature name.
16+
To fix the issue you need to provide the `feature` field.
1717

1818
```
1919
#![feature(staged_api)]
2020
#![stable(since = "1.0.0", feature = "test")]
2121
22-
#[unstable(feature = "unstable_fn", issue = "none")] // ok!
22+
#[unstable(feature = "unstable_fn", issue = "none")]
2323
fn unstable_fn() {}
2424
25-
#[stable(feature = "stable_fn", since = "1.0.0")] // ok!
25+
#[stable(feature = "stable_fn", since = "1.0.0")]
2626
fn stable_fn() {}
2727
```

0 commit comments

Comments
 (0)