diff options
Diffstat (limited to 'compiler/rustc_error_codes/src/error_codes/E0734.md')
-rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0734.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0734.md b/compiler/rustc_error_codes/src/error_codes/E0734.md new file mode 100644 index 000000000..b912061ec --- /dev/null +++ b/compiler/rustc_error_codes/src/error_codes/E0734.md @@ -0,0 +1,12 @@ +A stability attribute has been used outside of the standard library. + +Erroneous code example: + +```compile_fail,E0734 +#[stable(feature = "a", since = "b")] // invalid +#[unstable(feature = "b", issue = "none")] // invalid +fn foo(){} +``` + +These attributes are meant to only be used by the standard library and are +rejected in your own crates. |