/src/test/run-pass/crate-attributes-src/foo.rs

http://github.com/jruderman/rust · Rust · 8 lines · 5 code · 1 blank · 2 comment · 0 complexity · eb898b67105b9ef6cdc2f445f1ffe3fa MD5 · raw file

  1. // These are attributes of the foo module
  2. #[attr1 = "val"];
  3. #[attr2 = "val"];
  4. // Attributes of the following function
  5. #[attr1 = "val"]
  6. #[attr2 = "val"]
  7. fn main() { }