Skip to content

Commit 99301ff

Browse files
committed
test: Add a test for outer attributes on the first module in a file
Issue #487
1 parent b727d07 commit 99301ff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/run-pass/item-attributes.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
// xfail-stage0
22

3+
// These are are attributes of the following mod
4+
#[attr1 = "val"]
5+
#[attr2 = "val"]
6+
mod test_first_item_in_file_mod {
7+
}
8+
39
mod test_single_attr_outer {
410

511
#[attr = "val"]

0 commit comments

Comments
 (0)