Test that a feature gated cfg variable in a cfg_attr
on an unconfigured item is allowed
This commit is contained in:
parent
15d5074a34
commit
3636ce7875
@ -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() {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user