]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/stability-attribute-consistency.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / stability-attribute-consistency.rs
1 #![stable(feature = "stable_test_feature", since = "1.0.0")]
2
3 #![feature(staged_api)]
4
5 #[stable(feature = "foo", since = "1.0.0")]
6 fn foo_stable_1_0_0() {}
7
8 #[stable(feature = "foo", since = "1.29.0")]
9 //~^ ERROR feature `foo` is declared stable since 1.29.0
10 fn foo_stable_1_29_0() {}
11
12 #[unstable(feature = "foo", issue = "none")]
13 //~^ ERROR feature `foo` is declared unstable
14 fn foo_unstable() {}
15
16 fn main() {}