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
I'm quite certain this is because array length is an unsigned integer and your -1 is cast to an unsigned int as well. Basically, this is a duplicate of #5477.
fnmain(){let a = [1i];letmut b = a.len();println!("{}",b);
b = -1;println!("{}",b);}
This assertion incorrectly fails.
The text was updated successfully, but these errors were encountered: