From 4d9fa00fd58373f4ee19b6a45ab37e4601a8dd93 Mon Sep 17 00:00:00 2001 From: Caleb Cartwright Date: Fri, 27 Nov 2020 21:18:39 -0600 Subject: feat: support underscore expressions --- tests/source/expr.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/source/expr.rs') 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(_, _); +} -- cgit 1.4.1-3-g733a5