Skip to content

Commit

Permalink
Add regression test for #93197
Browse files Browse the repository at this point in the history
  • Loading branch information
eholk committed Jan 25, 2022
1 parent f4d7d09 commit 520bd69
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/ui/async-await/issue-93197.rs
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit 520bd69

Please sign in to comment.