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.
12 lines
410 B
Text
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`.
|