summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_error_codes/src/error_codes/E0734.md
blob: b912061ec42ccbaf43a067f3b8adec0cb457556e (plain)
1
2
3
4
5
6
7
8
9
10
11
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.