2019-12-21 11:16:18 +00:00
|
|
|
// Check that an issue value can be explicitly set to "0" instead of "none"
|
2019-11-11 17:33:30 +00:00
|
|
|
#![crate_type = "lib"]
|
|
|
|
#![feature(staged_api)]
|
|
|
|
#![stable(feature = "stable_test_feature", since = "1.0.0")]
|
|
|
|
|
|
|
|
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
2020-02-06 07:19:39 +00:00
|
|
|
fn unstable_issue_0() {} //~^ ERROR `issue` must be a non-zero numeric string or "none"
|
2019-11-11 17:33:30 +00:00
|
|
|
|
|
|
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
|
|
|
fn unstable_issue_none() {}
|
|
|
|
|
2020-01-22 15:33:46 +00:00
|
|
|
#[unstable(feature = "unstable_test_feature", issue = "something")]
|
2020-02-06 07:19:39 +00:00
|
|
|
fn unstable_issue_not_allowed() {} //~^ ERROR `issue` must be a non-zero numeric string or "none"
|