]> git.proxmox.com Git - rustc.git/blob - src/test/ui/feature-gate/unstable-attribute-allow-issue-none.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / 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"
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() {}
8
9 #[unstable(feature = "unstable_test_feature", issue = "none")]
10 fn unstable_issue_none() {}
11
12 #[unstable(feature = "unstable_test_feature", issue = "something")] //~ ERROR incorrect 'issue'
13 fn unstable_issue_not_allowed() {}