// Regression test for #13428
fn foo() -> String { //~ ERROR not all control paths return a value
+ //~^ HELP run `rustc --explain E0269` to see a detailed explanation
format!("Hello {}",
"world")
// Put the trailing semicolon on its own line to test that the
}
fn bar() -> String { //~ ERROR not all control paths return a value
+ //~^ HELP run `rustc --explain E0269` to see a detailed explanation
"foobar".to_string()
; //~ HELP consider removing this semicolon
}