2024-02-16 20:02:50 +00:00
|
|
|
//@ aux-build:issue-81839.rs
|
|
|
|
//@ edition:2018
|
2021-02-18 16:47:01 +03:00
|
|
|
|
|
|
|
extern crate issue_81839;
|
|
|
|
|
|
|
|
async fn test(ans: &str, num: i32, cx: &issue_81839::Test) -> u32 {
|
|
|
|
match num {
|
|
|
|
1 => {
|
|
|
|
cx.answer_str("hi");
|
|
|
|
}
|
|
|
|
_ => cx.answer_str("hi"), //~ `match` arms have incompatible types
|
|
|
|
}
|
|
|
|
|
|
|
|
1
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|