Add regression test for #93197

This commit is contained in:
Eric Holk 2022-01-25 15:19:33 -08:00
parent f4d7d09902
commit 520bd69860

View File

@ -0,0 +1,15 @@
// Regression test for #93197
// build-pass
// edition:2021
#![feature(try_blocks)]
use std::sync::{mpsc, mpsc::SendError};
pub async fn foo() {
let (tx, _) = mpsc::channel();
let _: Result<(), SendError<&str>> = try { tx.send("hello")?; };
}
fn main() {}