1 // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 #![allow(non_camel_case_types)]
12 #![allow(non_upper_case_globals)]
13 #![allow(unused_attributes)]
15 #![allow(unknown_lints)]
16 // These are attributes of the implicit crate. Really this just needs to parse
17 // for completeness since .rs files linked from .rc files support this
18 // notation to specify their module's attributes
20 #![feature(custom_attribute)]
21 #![allow(unused_attribute)]
27 #![crate_id="foobar#0.1"]
29 // These are attributes of the following mod
32 mod test_first_item_in_file_mod {}
34 mod test_single_attr_outer {
36 pub static x: isize = 10;
50 mod test_multi_attr_outer {
53 pub static x: isize = 10;
74 mod test_stmt_single_attr_outer {
94 mod test_stmt_multi_attr_outer {
119 mod test_attr_inner {
121 // This is an attribute of mod m
126 mod test_attr_inner_then_outer {
128 // This is an attribute of mod m
130 // This is an attribute of fn f
136 mod test_attr_inner_then_outer_multi {
138 // This is an attribute of mod m
141 // This is an attribute of fn f
148 mod test_distinguish_syntax_ext {
150 format!("test{}", "s");
156 mod test_other_forms {
160 #[attr(key1 = "val", key2 = "val", attr)]
164 mod test_foreign_items {
170 fn rust_get_test_int() -> u32;
176 // FIXME #623 - these aren't supported yet
177 /*mod test_literals {
181 #![usize = 100_usize]
182 #![mach_int = 100u32]
184 #![mach_float = 1.0f32]