Debian Codegraph @

debian/missing-sources/glib/tests/regex_compiletest/02-dangling.rs

raw
1 fn main() {
2 let r = glib::Regex::new(
3 "hello",
4 glib::RegexCompileFlags::DEFAULT,
5 glib::RegexMatchFlags::DEFAULT,
6 )
7 .unwrap()
8 .unwrap();
9 let s = glib::GString::from("hello");
10 let match_info = r
11 .match_(s.as_gstr(), glib::RegexMatchFlags::DEFAULT)
12 .expect("should match");
13 dbg!(match_info.fetch_all());
14 drop(s);
15 }