rust/tests/ui/stability-attribute/stability-attribute-sanity-2.rs

18 lines
475 B
Rust
Raw Normal View History

2015-10-13 09:00:47 -05:00
// More checks that stability attributes are used correctly
#![feature(staged_api)]
2018-07-23 06:22:23 -05:00
#![stable(feature = "stable_test_feature", since = "1.0.0")]
2015-11-16 10:54:28 -06:00
2015-10-13 09:00:47 -05: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 01:19:39 -06:00
#[unstable(feature = "a", issue = "no")]
//~^ ERROR `issue` must be a non-zero numeric string or "none"
2015-10-13 09:00:47 -05:00
fn f3() { }
fn main() { }