summaryrefslogtreecommitdiffstats
path: root/src/test/ui/block-result/issue-13428.rs
blob: ac85964353a342df06eb5b983cd0a9b2f49d60a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Regression test for #13428

fn foo() -> String {  //~ ERROR mismatched types
    format!("Hello {}",
            "world")
    // Put the trailing semicolon on its own line to test that the
    // note message gets the offending semicolon exactly
    ;
}

fn bar() -> String {  //~ ERROR mismatched types
    "foobar".to_string()
    ;
}

pub fn main() {}