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
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue