rust/tests/ui/block-result/consider-removing-last-semi.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
350 B
Rust
Raw Normal View History

2020-07-02 00:32:12 -05:00
// 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()
}
2021-10-14 13:28:28 -05:00
pub fn macro_tests() -> u32 { //~ ERROR mismatched types
macro_rules! mac {
() => (1);
}
mac!()
}
2020-07-02 00:32:12 -05:00
fn main() {}