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: `a` does not live long enough
--> <anon>:5:6
|
5 | *a.borrow_mut() < 6 // error
| ^
|
note: reference must be valid for the destruction scope surrounding block at 3:18...
--> <anon>:3:19
|
3 | fn test() -> bool {
| ^
note: ...but borrowed value is only valid for the block suffix following statement 0 at 4:28
--> <anon>:4:29
|
4 | let a = RefCell::new(5);
| ^
error: aborting due to previous error
when I use RefCell like after code.
https://is.gd/T8Wmps
will trigger a compile error
The text was updated successfully, but these errors were encountered: