Add regression test for #93197
This commit is contained in:
parent
f4d7d09902
commit
520bd69860
15
src/test/ui/async-await/issue-93197.rs
Normal file
15
src/test/ui/async-await/issue-93197.rs
Normal 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() {}
|
Loading…
x
Reference in New Issue
Block a user