You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// #![feature(staged_api)] // note: `staged_api` not enabled#![stable(feature = "foo", since = "1.0.0")]// error: feature `foo` is declared unstable#[unstable(feature = "foo", issue = "none")]fnfoo_unstable(){}
I expected to see this happen:
error[E0734]: stability attributes may not be used outside of the standard library
--> src/lib.rs:6:1
|
6 | #[unstable(feature = "foo", issue = "none")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0734]: stability attributes may not be used outside of the standard library
--> src/lib.rs:3:1
|
3 | #![stable(feature = "foo", since = "1.0.0")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Two errors emitted about the use of stability attributes outside the standard library (without staged_api).
Instead, this happened:
error[E0734]: stability attributes may not be used outside of the standard library
--> src/lib.rs:6:1
|
6 | #[unstable(feature = "foo", issue = "none")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0734]: stability attributes may not be used outside of the standard library
--> src/lib.rs:3:1
|
3 | #![stable(feature = "foo", since = "1.0.0")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+error[E0711]: feature `foo` is declared unstable, but was previously declared stable+ --> src/lib.rs:6:1+ |+6 | #[unstable(feature = "foo", issue = "none")]+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
An extra error relating to stability semantics which should not be emitted because stability attributes are not allowed here. Some permutations of this error exist: is staged_api enabled? are we on stable? etc.
I tried this code:
I expected to see this happen:
Two errors emitted about the use of stability attributes outside the standard library (without
staged_api
).Instead, this happened:
An extra error relating to stability semantics which should not be emitted because stability attributes are not allowed here. Some permutations of this error exist: is
staged_api
enabled? are we on stable? etc.Meta
Occurs on latest stable and nightly.
@rustbot claim
The text was updated successfully, but these errors were encountered: