rust/tests/ui/parser/issues/issue-68987-unmatch-issue-2.rs
Esteban Küber 855444ec54 mv tests
2023-10-24 21:27:05 +00:00

15 lines
405 B
Rust

// FIXME: this case need more work to fix
// currently the TokenTree matching ')' with '{', which is not user friendly for diagnostics
async fn obstest() -> Result<> {
let obs_connect = || -> Result<(), MyError) { //~ ERROR mismatched closing delimiter
async {
}
}
if let Ok(version, scene_list) = obs_connect() {
} else {
}
} //~ ERROR unexpected closing delimiter