2025-07-14 13:37:51 +00:00
|
|
|
#![allow(internal_features)]
|
|
|
|
|
#![feature(staged_api)]
|
|
|
|
|
#![allow(dead_code)]
|
|
|
|
|
#![stable(feature = "a", since = "1.1.1" )]
|
|
|
|
|
|
|
|
|
|
// Lint against the usage of both #[unstable_feature_bound] and #[stable] on the
|
|
|
|
|
// same item.
|
|
|
|
|
|
|
|
|
|
#[stable(feature = "a", since = "1.1.1")]
|
|
|
|
|
#[unstable_feature_bound(feat_bar)]
|
|
|
|
|
fn bar() {}
|
2025-09-01 16:47:55 +02:00
|
|
|
//~^ ERROR item annotated with `#[unstable_feature_bound]` should not be stable
|
2025-07-14 13:37:51 +00:00
|
|
|
|
|
|
|
|
fn main() {}
|