Skip to content

Commit 520bd69

Browse files
committed
Add regression test for rust-lang#93197
1 parent f4d7d09 commit 520bd69

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
+15
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)