fn toy_example(input: String) {
    let mut chars = input.chars();
    if chars.next() == Some('H') {
        if chars.next() == Some('I') {
            if chars.next() == Some('!') {
                panic!("it works!");
            }
        }
    }
}
// This is the "library code" tested in this example.
// Compare with https://llvm.org/docs/LibFuzzer.html#toy-example
This is the "library code" tested in this example.
This is the " library code " tested in this example .
fn toy_example(input: String) {
    let mut chars = input.chars();
    if chars.next() == Some('H') {
        if chars.next() == Some('I') {
            if chars.next() == Some('!') {
                panic!("it works!");
            }
        }
    }
}
fn toy_example ( input : String ) { let mut chars = input . chars ( ) ; if chars . next ( ) == Some ( 'H' ) { if chars . next ( ) == Some ( 'I' ) { if chars . next ( ) == Some ( '!' ) { panic ! ( " " ) ; } } } }
This is the "library code" tested in this example.
This is the " library code " tested in this example .
input
String
input
String