rust/src/test/ui/stability-attribute/stability-attribute-sanity-2.rs

17 lines
465 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-01-22 09:33:46 -06:00
#[unstable(feature = "a", issue = "no")] //~ ERROR `issue` must be a numeric string or "none"
2015-10-13 09:00:47 -05:00
fn f3() { }
fn main() { }