Skip to content
New issue

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 referring to mismatched types caused by topology #46

Closed
JAirfoil opened this issue Jan 9, 2020 · 2 comments
Closed

Error referring to mismatched types caused by topology #46

JAirfoil opened this issue Jan 9, 2020 · 2 comments

Comments

@JAirfoil
Copy link

JAirfoil commented Jan 9, 2020

Running on Debian Stretch

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

@JAirfoil
Copy link
Author

JAirfoil commented Jan 9, 2020

rustc --explain E0308
returns

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 JAirfoil changed the title Error referring to "linker cc not found" Error referring to mismatched types caused by topology Jan 9, 2020
@jstuczyn
Copy link
Contributor

That should be fixed now and similar problems shouldn't come up in the future. We've pined sphinx version to specific revision now: be0616b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants