extern crate peg; peg::parser!(grammar foo() for str { #[cache] rule foo(x: u32) = "foo" //~ ERROR #[cache] rule ltarg<'a>() -> &'a str = { "" } //~ ERROR }); fn main() {}