1 2 3 4 5 6 7
extern crate peg; peg::parser!(grammar foo() for str { rule foo() = { + } //~ ERROR expected expression, found `+` }); fn main() {}