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
This code compiles successfully, but doesn't seem like it should:
fnmain(){letmut view;{let array2 = vec![4i,5,6];
view = array2.as_slice().clone();}// Do not expect view to be valid here. Removing `clone` above makes this an error.println!("{}", view);}
This code compiles successfully, but doesn't seem like it should:
Version:
The text was updated successfully, but these errors were encountered: