You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: lifetime may not live long enough
--> crates/pota_parser/src/parser/mod.rs:716:60
|
716 | expect_that!(a, pat! (A( result_of_ref!(|x: &BoxB| x.as_ref(), pat!(&B(eq(&1usize)))))));
| - - ^^^^^^^^^^ returning this value requires that `'1` must outlive `'2`
| | |
| | return type of closure is &'2 B
| let's call the lifetime of this reference `'1`
The text was updated successfully, but these errors were encountered:
Is there a way to match
Box<T>
, whereT
doesn't implementCopy
?Got error,
The text was updated successfully, but these errors were encountered: