Closed
Description
Given the following
rust/src/test/ui/parser/inner-attr.rs
Lines 1 to 4 in dc6db14
we currently emit
rust/src/test/ui/parser/inner-attr.stderr
Lines 1 to 7 in dc6db14
We should emit at least the following
error: an inner attribute is not permitted following an outer attribute
--> $DIR/inner-attr.rs:3:3
|
LL | #[feature(lang_items)]
| ---------------------- previous outer attribute
LL |
LL | #![recursion_limit="100"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permited following an outer attibute
|
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
We might also want to provide suggestions when it makes sense (like turning the feature
attr into an outer attr).