2018-07-23 07:49:51 -05:00
|
|
|
#![stable(feature = "stable_test_feature", since = "1.0.0")]
|
|
|
|
|
|
|
|
#![feature(staged_api)]
|
|
|
|
|
|
|
|
#[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() {}
|
|
|
|
|
2019-12-21 05:16:18 -06:00
|
|
|
#[unstable(feature = "foo", issue = "none")]
|
2018-07-23 07:49:51 -05:00
|
|
|
//~^ ERROR feature `foo` is declared unstable
|
|
|
|
fn foo_unstable() {}
|
|
|
|
|
|
|
|
fn main() {}
|