]> git.lizzy.rs Git - rust.git/blob - tests/ui/block-result/issue-13428.rs
Rollup merge of #107531 - GuillaumeGomez:inline-images-in-css, r=notriddle
[rust.git] / tests / 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() {}