Skip to content

Commit 697fdaa

Browse files
committed
test: Add test cases for outer attributes on all item types
1 parent 11c5c73 commit 697fdaa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

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

3+
#[attr = "val"]
4+
const int x = 10;
5+
36
#[attr = "val"]
47
mod mod1 {
58
}
69

10+
#[attr = "val"]
11+
native "rust" mod rustrt {
12+
}
13+
14+
#[attr = "val"]
15+
type t = obj { };
16+
17+
#[attr = "val"]
18+
obj o() { }
19+
720
fn main() {
821
}

0 commit comments

Comments
 (0)