mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-31 21:16:44 +00:00
15 lines
399 B
Rust
15 lines
399 B
Rust
#![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() {}
|
|
//~^ ERROR Item annotated with `#[unstable_feature_bound]` should not be stable
|
|
|
|
fn main() {}
|