]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/issue-13428.rs
Rollup merge of #90498 - joshtriplett:target-tier-policy-draft-updates, r=Mark-Simulacrum
[rust.git] / src / test / ui / block-result / issue-13428.rs
1 // Regression test for #13428
2
3 fn foo() -> String {  //~ ERROR mismatched types
4     format!("Hello {}",
5             "world")
6     // Put the trailing semicolon on its own line to test that the
7     // note message gets the offending semicolon exactly
8     ;
9 }
10
11 fn bar() -> String {  //~ ERROR mismatched types
12     "foobar".to_string()
13     ;
14 }
15
16 pub fn main() {}