2015-10-13 17:00:47 +03:00
|
|
|
// More checks that stability attributes are used correctly
|
|
|
|
|
|
|
|
#![feature(staged_api)]
|
|
|
|
|
2018-07-23 12:22:23 +01:00
|
|
|
#![stable(feature = "stable_test_feature", since = "1.0.0")]
|
2015-11-16 19:54:28 +03:00
|
|
|
|
2015-10-13 17:00:47 +03:00
|
|
|
#[stable(feature = "a", feature = "b", since = "1.0.0")] //~ ERROR multiple 'feature' items
|
|
|
|
fn f1() { }
|
|
|
|
|
|
|
|
#[stable(feature = "a", sinse = "1.0.0")] //~ ERROR unknown meta item 'sinse'
|
|
|
|
fn f2() { }
|
|
|
|
|
2020-02-06 16:19:39 +09:00
|
|
|
#[unstable(feature = "a", issue = "no")]
|
|
|
|
//~^ ERROR `issue` must be a non-zero numeric string or "none"
|
2015-10-13 17:00:47 +03:00
|
|
|
fn f3() { }
|
|
|
|
|
|
|
|
fn main() { }
|