We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4d7d09 commit 520bd69Copy full SHA for 520bd69
src/test/ui/async-await/issue-93197.rs
@@ -0,0 +1,15 @@
1
+// Regression test for #93197
2
+// build-pass
3
+// edition:2021
4
+
5
+#![feature(try_blocks)]
6
7
+use std::sync::{mpsc, mpsc::SendError};
8
9
+pub async fn foo() {
10
+ let (tx, _) = mpsc::channel();
11
12
+ let _: Result<(), SendError<&str>> = try { tx.send("hello")?; };
13
+}
14
15
+fn main() {}
0 commit comments