Skip to content

Commit 95bdedf

Browse files
committed
test: Add missing fn test cases to run-pass/item-attributes.rs
Issue #487
1 parent a5bca7d commit 95bdedf

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

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

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
2-
3-
41
// xfail-stage0
2+
53
mod test_single_attr_outer {
64

75
#[attr = "val"]
86
const int x = 10;
97

108
#[attr = "val"]
11-
mod mod1 { }
9+
fn f() {}
10+
11+
#[attr = "val"]
12+
mod mod1 {
13+
}
1214

1315
#[attr = "val"]
1416
native "rust" mod rustrt { }
@@ -29,7 +31,12 @@ mod test_multi_attr_outer {
2931

3032
#[attr1 = "val"]
3133
#[attr2 = "val"]
32-
mod mod1 { }
34+
fn f() {}
35+
36+
#[attr1 = "val"]
37+
#[attr2 = "val"]
38+
mod mod1 {
39+
}
3340

3441
#[attr1 = "val"]
3542
#[attr2 = "val"]
@@ -45,4 +52,4 @@ mod test_multi_attr_outer {
4552
obj o() { }
4653
}
4754

48-
fn main() { }
55+
fn main() { }

0 commit comments

Comments
 (0)