rust/src/test/ui/span/issue-36530.rs
Vadim Petrochenkov 79f0d88de8 resolve: Use feature(custom_attribute) fallback only if the feature is enabled
Normally `#![feature(...)]` shouldn't change behavior, but custom attributes in particular are in the process of retirement, and we should not produce a message telling to enable them.
It also helps with unifying diagnostics for unresolved macros.
2019-07-18 13:42:45 +03:00

10 lines
166 B
Rust

// gate-test-custom_inner_attributes
#![feature(custom_attribute)]
#[foo]
mod foo {
#![foo] //~ ERROR non-builtin inner attributes are unstable
}
fn main() {}