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
When running the cargo test command in the nym directory, I receive this error.
error[E0308]: mismatched types
--> common/topology/src/lib.rs:69:30
|
69 | address: address_bytes,
| ^^^^^^^^^^^^^ expected struct sphinx::route::NodeAddressBytes, found array of 32 elements
|
= note: expected type sphinx::route::NodeAddressBytes
found type [u8; 32]
error: aborting due to previous error
For more information about this error, try rustc --explain E0308.
error: could not compile topology.
warning: build failed, waiting for other jobs to finish...
error: build failed
The text was updated successfully, but these errors were encountered:
This error occurs when the compiler was unable to infer the concrete type of a
variable. It can occur for several cases, the most common of which is a
mismatch in the expected type that the compiler inferred for a variable's
initializing expression, and the actual type explicitly assigned to the
variable.
For example:
let x: i32 = "I am not a number!";
// ~~~ ~~~~~~~~~~~~~~~~~~~~
// | |
// | initializing expression;
// | compiler infers type &str
// |
// type i32 assigned to variable x
(END)
JAirfoil
changed the title
Error referring to "linker cc not found"
Error referring to mismatched types caused by topology
Jan 9, 2020
Running on Debian Stretch
When running the
cargo test
command in thenym
directory, I receive this error.error[E0308]: mismatched types
--> common/topology/src/lib.rs:69:30
|
69 | address: address_bytes,
| ^^^^^^^^^^^^^ expected struct sphinx::route::NodeAddressBytes, found array of 32 elements
|
= note: expected type sphinx::route::NodeAddressBytes
found type [u8; 32]
error: aborting due to previous error
For more information about this error, try rustc --explain E0308.
error: could not compile topology.
warning: build failed, waiting for other jobs to finish...
error: build failed
The text was updated successfully, but these errors were encountered: