]> git.lizzy.rs Git - rust.git/blob - tests/target/closure-block-inside-macro.rs
Prevent rewriting closure block to expr inside macro
[rust.git] / tests / target / closure-block-inside-macro.rs
1 // rustfmt-fn_call_style: Block
2
3 // #1547
4 fuzz_target!(
5     |data: &[u8]| {
6         if let Some(first) = data.first() {
7             let index = *first as usize;
8             if index >= ENCODINGS.len() {
9                 return;
10             }
11             let encoding = ENCODINGS[index];
12             dispatch_test(encoding, &data[1..]);
13         }
14     }
15 );