Skip to content

Commit 34040be

Browse files
committed
test: Add a test for distinguishing attributes from extensions
Issue #487
1 parent c109c9d commit 34040be

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

+12
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,18 @@ mod test_attr_inner_then_outer_multi {
161161
}
162162
}
163163

164+
mod test_distinguish_syntax_ext {
165+
166+
use std;
167+
168+
fn f() {
169+
#fmt("test%s", "s");
170+
#[attr = "val"]
171+
fn g() {
172+
}
173+
}
174+
}
175+
164176
fn main() {
165177
}
166178

0 commit comments

Comments
 (0)