]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/unstable-attribute-allow-issue-0.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / unstable-attribute-allow-issue-0.rs
1 // Check that an issue value can be explicitly set to "0" instead of "none"
2 #![crate_type = "lib"]
3 #![feature(staged_api)]
4 #![stable(feature = "stable_test_feature", since = "1.0.0")]
5
6 #[unstable(feature = "unstable_test_feature", issue = "0")]
7 fn unstable_issue_0() {} //~^ ERROR `issue` must be a non-zero numeric string or "none"
8
9 #[unstable(feature = "unstable_test_feature", issue = "none")]
10 fn unstable_issue_none() {}
11
12 #[unstable(feature = "unstable_test_feature", issue = "something")]
13 fn unstable_issue_not_allowed() {} //~^ ERROR `issue` must be a non-zero numeric string or "none"