about summary refs log tree commit diff
path: root/tests/ui/suggestions/issue-81839.rs
blob: 99a03c175b3967742214285087aa334835b93a11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ aux-build:issue-81839.rs
//@ edition:2018

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"), //~ ERROR `match` arms have incompatible types
    }

    1
}

fn main() {}