Test that a feature gated cfg variable in a cfg_attr on an unconfigured item is allowed

This commit is contained in:
Jeffrey Seyfried 2016-05-18 01:50:29 +00:00
parent 15d5074a34
commit 3636ce7875

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(rustc_attrs)]
#![feature(custom_attribute, rustc_attrs)]
macro_rules! mac {
{} => {
@ -16,6 +16,9 @@ macro_rules! mac {
mod m {
#[lang_item]
fn f() {}
#[cfg_attr(target_thread_local, custom)]
fn g() {}
}
}
}