2023-01-05 02:45:44 -06:00
|
|
|
// copied from: tests/ui/feature-gates/stability-attribute-consistency.rs
|
2023-01-08 02:36:19 -06:00
|
|
|
|
|
|
|
#![feature(staged_api)]
|
|
|
|
|
|
|
|
#![stable(feature = "stable_test_feature", since = "1.0.0")]
|
|
|
|
|
|
|
|
#[stable(feature = "foo", since = "1.0.0")]
|
|
|
|
fn foo_stable_1_0_0() {}
|
|
|
|
|
|
|
|
#[stable(feature = "foo", since = "1.29.0")]
|
|
|
|
//~^ ERROR feature `foo` is declared stable since 1.29.0
|
|
|
|
fn foo_stable_1_29_0() {}
|
|
|
|
|
|
|
|
#[unstable(feature = "foo", issue = "none")]
|
|
|
|
//~^ ERROR feature `foo` is declared unstable
|
|
|
|
fn foo_unstable() {}
|
|
|
|
|
|
|
|
fn main() {}
|