use combine::parser::regex::{captures, Captures};
use combine::Parser;
use std::fs;
fn main() -> anyhow::Result<()> {
let comment = regex::Regex::new(r"%[^\n]*\n").unwrap();
let mut c: combine::parser::regex::Captures<_, regex::Regex, &str> = captures(comment);
let y = c.parse("hello world")?;
/*
println!("{:?}", y);
*/
Ok(())
}
I can not figure out what to fill in for the first type arg to regex::Captures.
The first type argument is passed through as the Output associated type in impl Parser for Captures. So, you should probably specify the type you are trying to parse into.