blob: c627fe17afbbed51635608c6cad0b2e38cdf1793 [file] [log] [blame]
// Regression test for #93197
// check-pass
// edition:2021
// compile-flags: -Zdrop-tracking
#![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() {}