diff options
Diffstat (limited to 'src/librustc/error_codes.rs')
| -rw-r--r-- | src/librustc/error_codes.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/librustc/error_codes.rs b/src/librustc/error_codes.rs index f6564f1fcd4..968b0b9f2f2 100644 --- a/src/librustc/error_codes.rs +++ b/src/librustc/error_codes.rs @@ -2217,6 +2217,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 |
