These are chat archives for rust-lang/rust
Struggling a bit with expected sigs. So get_excited should look like this?
let get_excited = |match_grp: regex::Captures| match_grp.name("replace_this").unwrap().as_str().to_string() + "!";
Eg first we extract the match group by name (in this case only one thing), then we unwrap the option, then call .as_str() to turn it into a string, and the rest is my example processing.
expected signature of `for<'r, 's> fn(&'r regex::re_unicode::Captures<'s>) -> _
&solved the issue, then that's great
#![feature(prelude_import)]? what is it for? where can I find more information about it?
dayslater on. But according to this: https://github.com/rust-lang/rfcs/blob/master/text/1857-stabilize-drop-order.md#tuples-structs-and-enum-variants, it should be the other way around. Or am I reading it wrong?