From 7426c83d8f5d1688763642503b59d0f0f653a3f5 Mon Sep 17 00:00:00 2001 From: mojave2 Date: Sat, 16 Sep 2023 00:05:57 +0800 Subject: [PATCH] add a test case --- tests/ui/let_unit.fixed | 2 ++ tests/ui/let_unit.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/ui/let_unit.fixed b/tests/ui/let_unit.fixed index 57374bd5fcd..f98ce9d50a9 100644 --- a/tests/ui/let_unit.fixed +++ b/tests/ui/let_unit.fixed @@ -177,3 +177,5 @@ fn attributes() { async fn issue10433() { let _pending: () = std::future::pending().await; } + +pub async fn issue11502(a: ()) {} diff --git a/tests/ui/let_unit.rs b/tests/ui/let_unit.rs index 09077c60d50..6d942ca8908 100644 --- a/tests/ui/let_unit.rs +++ b/tests/ui/let_unit.rs @@ -177,3 +177,5 @@ fn attributes() { async fn issue10433() { let _pending: () = std::future::pending().await; } + +pub async fn issue11502(a: ()) {}