rust/src/test/ui/span/issue-36530.stderr
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

12 lines
410 B
Text

error[E0658]: non-builtin inner attributes are unstable
--> $DIR/issue-36530.rs:7:5
|
LL | #![foo]
| ^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54726
= help: add `#![feature(custom_inner_attributes)]` to the crate attributes to enable
error: aborting due to previous error
For more information about this error, try `rustc --explain E0658`.