os-rust/src/test/ui/block-result/consider-removing-last-semi.rs

12 lines
208 B
Rust
Raw Normal View History

fn f() -> String { //~ ERROR mismatched types
0u8;
"bla".to_string();
}
fn g() -> String { //~ ERROR mismatched types
2016-04-04 13:53:04 +02:00
"this won't work".to_string();
"removeme".to_string();
2016-04-04 13:53:04 +02:00
}
fn main() {}