summary refs log tree commit diff
path: root/src/test/ui/feature-gate/stability-attribute-consistency.rs
blob: caafd8b88547533e18c8a4959a17b9fc5336c0cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![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() {}

#[unstable(feature = "foo", issue = "0")]
//~^ ERROR feature `foo` is declared unstable
fn foo_unstable() {}

fn main() {}