summaryrefslogtreecommitdiffstats
path: root/tests/ui/block-result/consider-removing-last-semi.fixed
blob: 36a769fe5292ad8521b8490e845c685bc6f8c25d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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()
}

pub fn macro_tests() -> u32 {  //~ ERROR mismatched types
    macro_rules! mac {
        () => (1);
    }
    mac!()
}

fn main() {}