We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types --> /Users/xxxx/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/socket2-0.3.8/src/sockaddr.rs:153:9 | 153 | mem::transmute::<SocketAddrV4, sockaddr_in>(v4); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: source type: SocketAddrV4 (48 bits) = note: target type: sockaddr_in (128 bits)
SocketAddrV4
sockaddr_in
For more information about this error, try rustc --explain E0512. error: could not compile socket2 due to previous error
rustc --explain E0512
socket2
没明白这个报错的原因,是因为rust版本的原因吗?(我rust版本是rustc 1.65.0 (897e37553 2022-11-02)),并且Cargo.toml清单文件中并没有依赖socket2-0.3.8这个crate
The text was updated successfully, but these errors were encountered:
No branches or pull requests
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /Users/xxxx/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/socket2-0.3.8/src/sockaddr.rs:153:9
|
153 | mem::transmute::<SocketAddrV4, sockaddr_in>(v4);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type:
SocketAddrV4
(48 bits)= note: target type:
sockaddr_in
(128 bits)For more information about this error, try
rustc --explain E0512
.error: could not compile
socket2
due to previous error没明白这个报错的原因,是因为rust版本的原因吗?(我rust版本是rustc 1.65.0 (897e37553 2022-11-02)),并且Cargo.toml清单文件中并没有依赖socket2-0.3.8这个crate
The text was updated successfully, but these errors were encountered: