diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2019-09-25 13:58:42 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2019-09-27 13:23:07 +0200 |
| commit | 0ebb044eb1bc1a930ae777e41347e960b8c419eb (patch) | |
| tree | c232e3b80cee4861bdc7b86710a1b4c94a0736fc | |
| parent | 68d099a175334939047b99888b656661f32e13e3 (diff) | |
| download | rust-0ebb044eb1bc1a930ae777e41347e960b8c419eb.tar.gz rust-0ebb044eb1bc1a930ae777e41347e960b8c419eb.zip | |
Add long error explanation for E0734
| -rw-r--r-- | src/librustc/error_codes.rs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/librustc/error_codes.rs b/src/librustc/error_codes.rs index 554e1a9ad82..f01efedd659 100644 --- a/src/librustc/error_codes.rs +++ b/src/librustc/error_codes.rs @@ -2184,6 +2184,23 @@ Examples of erroneous code: static X: u32 = 42; ``` "##, + +E0734: r##" +A stability attribute has been used outside of the standard library. + +Erroneous code examples: + +```compile_fail,E0734 +#[rustc_deprecated(since = "b", reason = "text")] // invalid +#[stable(feature = "a", since = "b")] // invalid +#[unstable(feature = "b", issue = "0")] // invalid +fn foo(){} +``` + +These attributes are meant to only be used by the standard library and are +rejected in your own crates. +"##, + ; // E0006, // merged with E0005 // E0101, // replaced with E0282 @@ -2247,5 +2264,4 @@ static X: u32 = 42; E0726, // non-explicit (not `'_`) elided lifetime in unsupported position E0727, // `async` generators are not yet supported E0728, // `await` must be in an `async` function or block - E0734, // stability attributes may not be used outside of the standard library } |
