rust/tests/target/closure-block-inside-macro.rs

12 lines
275 B
Rust
Raw Normal View History

2017-11-13 08:09:59 +01:00
// rustfmt-indent_style: Block
// #1547
2017-05-26 09:36:15 +02:00
fuzz_target!(|data: &[u8]| if let Some(first) = data.first() {
let index = *first as usize;
if index >= ENCODINGS.len() {
return;
}
2017-05-26 09:36:15 +02:00
let encoding = ENCODINGS[index];
dispatch_test(encoding, &data[1..]);
2017-05-21 12:56:37 +02:00
});