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

10 lines
243 B
Rust
Raw Normal View History

2017-11-02 07:38:20 -05:00
// #1547
fuzz_target!(|data: &[u8]| if let Some(first) = data.first() {
let index = *first as usize;
if index >= ENCODINGS.len() {
return;
}
let encoding = ENCODINGS[index];
dispatch_test(encoding, &data[1..]);
});