rust/src/test/ui/block-result/consider-removing-last-semi.fixed
2020-07-02 15:18:33 +09:00

14 lines
230 B
Rust

// run-rustfix
pub fn f() -> String { //~ ERROR mismatched types
0u8;
"bla".to_string()
}
pub fn g() -> String { //~ ERROR mismatched types
"this won't work".to_string();
"removeme".to_string()
}
fn main() {}