Created
June 1, 2020 00:04
-
-
Save kench/76e0b07973b617094ab61d31977fc1b7 to your computer and use it in GitHub Desktop.
Cargo build error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MacBook-Pro:srt_test kenley$ cargo build | |
Updating registry `https://github.com/rust-lang/crates.io-index` | |
Downloading srt-rs v0.1.6 | |
Downloading libc v0.2.71 | |
Downloading libsrt-sys v1.4.5 | |
Downloading lazy_static v1.4.0 | |
Compiling libsrt-sys v1.4.5 | |
Compiling libc v0.2.71 | |
Compiling lazy_static v1.4.0 | |
error: expected one of `,` or `as`, found `::` | |
--> /Users/kenley/.cargo/registry/src/github.com-1ecc6299db9ec823/libsrt-sys-1.4.5/build.rs:1:21 | |
| | |
1 | use std::{env, error::Error, path::PathBuf, process::Command}; | |
| ^^ expected one of `,` or `as` here | |
error: expected one of `;` or `as`, found `::` | |
--> /Users/kenley/.cargo/registry/src/github.com-1ecc6299db9ec823/libsrt-sys-1.4.5/build.rs:1:21 | |
| | |
1 | use std::{env, error::Error, path::PathBuf, process::Command}; | |
| ^^ expected one of `;` or `as` here | |
error: aborting due to 2 previous errors | |
error: Could not compile `libsrt-sys`. | |
warning: build failed, waiting for other jobs to finish... | |
error[E0432]: unresolved import `self::std::hint` | |
--> /Users/kenley/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs:13:16 | |
| | |
13 | use self::std::hint::unreachable_unchecked; | |
| ^^^^ Could not find `hint` in `std` | |
error: aborting due to previous error | |
error: Could not compile `lazy_static`. | |
warning: build failed, waiting for other jobs to finish... | |
error: build failed | |
MacBook-Pro:srt_test kenley$ cargo version | |
cargo 0.23.0 (61fa02415 2017-11-22) | |
MacBook-Pro:srt_test kenley$ rustc --version | |
rustc 1.22.1 (05e2e1c41 2017-11-22) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment