]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/consider-removing-last-semi.rs
Rollup merge of #95353 - jyn514:invalid-filter-hard-error, r=Mark-Simulacrum
[rust.git] / src / test / ui / block-result / consider-removing-last-semi.rs
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() {}