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
use std::os::raw::c_long;pubstructS(c_long);implFrom<c_long>forS{fnfrom(i:c_long) -> S{S(i)}}
The documentation for the S trait implementations looks like this:
While the from function itself is documented correctly to take a parameter of type c_long, the From trait has type parameter i64 instead of c_long. I expected it to be impl From<c_long> for S instead.
Meta
rustc +nightly --version:
rustc 1.53.0-nightly (4a20eb6a9 2021-03-28)
The text was updated successfully, but these errors were encountered:
The documentation for the
S
trait implementations looks like this:While the
from
function itself is documented correctly to take a parameter of typec_long
, theFrom
trait has type parameteri64
instead ofc_long
. I expected it to beimpl From<c_long> for S
instead.Meta
rustc +nightly --version
:The text was updated successfully, but these errors were encountered: