I have following function:
fn i_to_str(&self, i: int) -> &'a str {
return i.to_string().as_slice();
}
This code is producing error: borrowed value does not live long enough
because of as_slice lifetime. Does anyone knows is there some workaround for this to make this possible?