From 34040be580afb1434e97e149693b8f8e2996e15b Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 21 Jun 2011 11:36:41 -0700 Subject: [PATCH] test: Add a test for distinguishing attributes from extensions Issue #487 --- src/test/run-pass/item-attributes.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/run-pass/item-attributes.rs b/src/test/run-pass/item-attributes.rs index 667e537ca37..00e419bc0b9 100644 --- a/src/test/run-pass/item-attributes.rs +++ b/src/test/run-pass/item-attributes.rs @@ -161,6 +161,18 @@ mod test_attr_inner_then_outer_multi { } } +mod test_distinguish_syntax_ext { + + use std; + + fn f() { + #fmt("test%s", "s"); + #[attr = "val"] + fn g() { + } + } +} + fn main() { }