Skip to content

Commit 47ad3b2

Browse files
committed
Adjust tests/ui/attrs-resolution.rs
- Move `tests/ui/attrs-resolution.rs` to `tests/ui/resolve/`. - Document test intent. - Rename test to `non-macro-attrs-accepted.rs` to better reflect test intent.
1 parent 836a0e0 commit 47ad3b2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/ui/attrs-resolution.rs tests/ui/resolve/non-macro-attrs-accepted.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
//! Check that certain positions (listed below) permit *non-macro* attributes.
2+
//!
3+
//! - Enum variants
4+
//! - Struct fields
5+
//! - Field in a struct pattern
6+
//! - Match arm
7+
//! - Field in struct initialization expression
8+
19
//@ check-pass
210

311
enum FooEnum {
@@ -30,7 +38,7 @@ fn main() {
3038
_ => {}
3139
}
3240

33-
let _another_foo_strunct = FooStruct {
41+
let _another_foo_struct = FooStruct {
3442
#[rustfmt::skip]
3543
bar: 1,
3644
};

0 commit comments

Comments
 (0)