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
{
let owned = String::new();
//| ----- move occurs because `owned` has type `std::string::String`, which does not implement the `Copy` trait
array![ owned];
//| -----------^^^^^--
//| | |
//| | variable moved due to use in closure
//| | value used here after move
//| value moved into closure here
}