mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
17 lines
358 B
Rust
17 lines
358 B
Rust
// 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() {}
|