2014-04-09 20:42:25 +00:00
|
|
|
// Regression test for #13428
|
|
|
|
|
2016-10-25 23:28:20 +00:00
|
|
|
fn foo() -> String { //~ ERROR mismatched types
|
2014-05-28 03:44:58 +00:00
|
|
|
format!("Hello {}",
|
|
|
|
"world")
|
2014-04-09 20:42:25 +00:00
|
|
|
// Put the trailing semicolon on its own line to test that the
|
|
|
|
// note message gets the offending semicolon exactly
|
2017-12-10 20:29:24 +00:00
|
|
|
;
|
2014-04-09 20:42:25 +00:00
|
|
|
}
|
|
|
|
|
2016-10-25 23:28:20 +00:00
|
|
|
fn bar() -> String { //~ ERROR mismatched types
|
2014-05-25 10:17:19 +00:00
|
|
|
"foobar".to_string()
|
2017-12-10 20:29:24 +00:00
|
|
|
;
|
2014-04-09 20:42:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {}
|