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
Right now the following program will error on the line commented point B, but once #7083 is implemented it will no longer be an error. The program should instead error on line A, or else you could coerce arbitrary types.
traitSend2:Send{}structX<T>(T);impl<T>SendforX<T>{}// point Aimpl<T>Send2forX<T>{}fnfoo<T:Send2>(x:T){let(p,c) = std::comm::oneshot();
c.send(x);// point B}fnmain(){letmut a = 0;foo(X(&mut a));}
The text was updated successfully, but these errors were encountered:
Right now the following program will error on the line commented point B, but once #7083 is implemented it will no longer be an error. The program should instead error on line A, or else you could coerce arbitrary types.
The text was updated successfully, but these errors were encountered: