Skip to content

Commit 9536567

Browse files
committed
Add #![feature(staged_api)] attribute to E0539 error examples
1 parent e4ee172 commit 9536567

File tree

1 file changed

+4
-0
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+4
-0
lines changed

src/librustc_error_codes/error_codes/E0539.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ An invalid meta-item was used inside an attribute.
33
Erroneous code example:
44

55
```compile_fail,E0539
6+
#![feature(staged_api)]
7+
68
#[rustc_deprecated(reason)] // error!
79
#[unstable(feature = "deprecated_fn", issue = "123")]
810
fn deprecated() {}
@@ -24,6 +26,8 @@ Meta items are the key-value pairs inside of an attribute.
2426
To fix these issues you need to give required key-value pairs.
2527

2628
```
29+
#![feature(staged_api)]
30+
2731
#[rustc_deprecated(since = "1.39.0", reason = "reason")] // ok!
2832
#[unstable(feature = "deprecated_fn", issue = "123")]
2933
fn deprecated() {}

0 commit comments

Comments
 (0)