aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/tests/test/main.rs
diff options
context:
space:
mode:
authordarksv <[email protected]>2018-09-10 22:21:16 +0100
committerdarksv <[email protected]>2018-09-10 22:21:16 +0100
commitd0cfeb4f1616e125ca3a941f2dcf5dfbb5f2b03f (patch)
tree51e6ec506b5bc263eaad6cd4af87e2afcff974cb /crates/libsyntax2/tests/test/main.rs
parent64d07c1bd475c4945db8d7cd1fa1a61e467b079b (diff)
Do not reparse token tree when it is not delimited by braces
Diffstat (limited to 'crates/libsyntax2/tests/test/main.rs')
-rw-r--r--crates/libsyntax2/tests/test/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/libsyntax2/tests/test/main.rs b/crates/libsyntax2/tests/test/main.rs
index 24058efa9..644df9f3c 100644
--- a/crates/libsyntax2/tests/test/main.rs
+++ b/crates/libsyntax2/tests/test/main.rs
@@ -85,6 +85,11 @@ pub enum A {
85foo!{a, b<|><|> d} 85foo!{a, b<|><|> d}
86", ", c[3]"); 86", ", c[3]");
87 do_check(r" 87 do_check(r"
88fn foo() {
89 vec![<|><|>]
90}
91", "123");
92 do_check(r"
88extern { 93extern {
89 fn<|>;<|> 94 fn<|>;<|>
90} 95}