]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/feature-gate/unstable-attribute-allow-issue-none.rs
1 // Check that an issue value can be explicitly set to "none" instead of "0"
3 #![feature(staged_api)]
4 #![stable(feature = "stable_test_feature", since = "1.0.0")]
6 #[unstable(feature = "unstable_test_feature", issue = "0")]
7 fn unstable_issue_0() {}
9 #[unstable(feature = "unstable_test_feature", issue = "none")]
10 fn unstable_issue_none() {}
12 #[unstable(feature = "unstable_test_feature", issue = "something")] //~ ERROR incorrect 'issue'
13 fn unstable_issue_not_allowed() {}