about summary refs log tree commit diff
path: root/tests/source/expr.rs
diff options
context:
space:
mode:
authorCaleb Cartwright <caleb.cartwright@outlook.com>2020-11-27 21:18:39 -0600
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2020-11-28 17:41:21 -0600
commit4d9fa00fd58373f4ee19b6a45ab37e4601a8dd93 (patch)
treee65ec62f52738cdd4ad0c8414299aab00e6cad14 /tests/source/expr.rs
parent5c0673c371b4306e1e7fda8455af6fa3085a4627 (diff)
feat: support underscore expressions
Diffstat (limited to 'tests/source/expr.rs')
-rw-r--r--tests/source/expr.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/source/expr.rs b/tests/source/expr.rs
index 8a6e6f1aa2b..21f8a4a4366 100644
--- a/tests/source/expr.rs
+++ b/tests/source/expr.rs
@@ -567,3 +567,13 @@ fn foo() {
     }
         .await;
 }
+
+fn underscore() {
+        _= 1;
+        _;
+        [  _,a,_  ] = [1, 2, 3];
+    (a,   _) = (8, 9);
+    TupleStruct(  _, a) = TupleStruct(2, 2);
+
+    let _  : usize = foo(_, _);
+}