]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/issue-81839.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / suggestions / issue-81839.rs
CommitLineData
6a06907d
XL
1// aux-build:issue-81839.rs
2// edition:2018
3
4extern crate issue_81839;
5
6async 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
17fn main() {}