]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-81839.rs
Auto merge of #106696 - kylematsuda:early-binder, r=lcnr
[rust.git] / tests / ui / suggestions / issue-81839.rs
1 // aux-build:issue-81839.rs
2 // edition:2018
3
4 extern crate issue_81839;
5
6 async fn test(ans: &str, num: i32, cx: &issue_81839::Test) -> u32 {
7     match num {
8         1 => {
9             cx.answer_str("hi");
10         }
11         _ => cx.answer_str("hi"), //~ `match` arms have incompatible types
12     }
13
14     1
15 }
16
17 fn main() {}