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
traitArray:Sized{}fnf<T:Array>(x:&T){let _ = x as&Array;}fnmain(){}
<anon>:4:13: 4:14 error: cannot convert to a trait object because trait `Array` is not object-safe [E0038]
<anon>:4 let _ = x as &Array;
^
<anon>:4:13: 4:14 note: the trait cannot require that `Self : Sized`
<anon>:4 let _ = x as &Array;
^
<anon>:4:13: 4:14 note: the trait cannot require that `Self : Sized`
<anon>:4 let _ = x as &Array;
^
Preferably the note would only be printed once, otherwise it's just a bit confusing.
The text was updated successfully, but these errors were encountered:
Preferably the note would only be printed once, otherwise it's just a bit confusing.
The text was updated successfully, but these errors were encountered: