diff --git a/src/test/run-pass/item-attributes.rs b/src/test/run-pass/item-attributes.rs index df18f786f05..575447b3d5d 100644 --- a/src/test/run-pass/item-attributes.rs +++ b/src/test/run-pass/item-attributes.rs @@ -1,14 +1,16 @@ - - - // xfail-stage0 + mod test_single_attr_outer { #[attr = "val"] const int x = 10; #[attr = "val"] - mod mod1 { } + fn f() {} + + #[attr = "val"] + mod mod1 { + } #[attr = "val"] native "rust" mod rustrt { } @@ -29,7 +31,12 @@ mod test_multi_attr_outer { #[attr1 = "val"] #[attr2 = "val"] - mod mod1 { } + fn f() {} + + #[attr1 = "val"] + #[attr2 = "val"] + mod mod1 { + } #[attr1 = "val"] #[attr2 = "val"] @@ -45,4 +52,4 @@ mod test_multi_attr_outer { obj o() { } } -fn main() { } \ No newline at end of file +fn main() { }