]> git.lizzy.rs Git - rust.git/blob - tests/ui/block-result/consider-removing-last-semi.fixed
Rollup merge of #104672 - Voultapher:unify-sort-modules, r=thomcc
[rust.git] / tests / ui / block-result / consider-removing-last-semi.fixed
1 // run-rustfix
2
3 pub fn f() -> String {  //~ ERROR mismatched types
4     0u8;
5     "bla".to_string()
6 }
7
8 pub fn g() -> String {  //~ ERROR mismatched types
9     "this won't work".to_string();
10     "removeme".to_string()
11 }
12
13 pub fn macro_tests() -> u32 {  //~ ERROR mismatched types
14     macro_rules! mac {
15         () => (1);
16     }
17     mac!()
18 }
19
20 fn main() {}