blob: b0f5e1f0f0e80b11bf4fd2ea3be48ec4c7394346 [file] [log] [blame] [edit]
// Regression test for #93197
//@ check-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() {}