V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
qinmenghuo
V2EX  ›  问与答

求助: ubuntu 安装程序出现错误

  •  
  •   qinmenghuo · Feb 11, 2021 · 1432 views
    This topic created in 1908 days ago, the information mentioned may be changed or developed.
    https://github.com/lolishinshi/exloli

    这个里面给的
    cargo install --git https://github.com/Aloxaf/exloli
    这个命令使用之后出现了这个错误
    error[E0277]: the trait bound `[i64; 3]: std::convert::From<std::vec::Vec<i64>>` is not satisfied
    --> src/bot/command.rs:109:47
    |
    109 | if let Some(v) = v.and_then(|v| TryInto::<[i64; 3]>::try_into(v).ok()) {
    | ^^^^^^^^ the trait `std::convert::From<std::vec::Vec<i64>>` is not implemented for `[i64; 3]`
    |
    = note: required because of the requirements on the impl of `std::convert::Into<[i64; 3]>` for `std::vec::Vec<i64>`
    = note: required because of the requirements on the impl of `std::convert::TryFrom<std::vec::Vec<i64>>` for `[i64; 3]`

    error[E0277]: the trait bound `[i64; 3]: std::convert::From<std::vec::Vec<i64>>` is not satisfied
    --> src/bot/command.rs:109:37
    |
    109 | if let Some(v) = v.and_then(|v| TryInto::<[i64; 3]>::try_into(v).ok()) {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<std::vec::Vec<i64>>` is not implemented for `[i64; 3]`
    |
    = note: required because of the requirements on the impl of `std::convert::Into<[i64; 3]>` for `std::vec::Vec<i64>`
    = note: required because of the requirements on the impl of `std::convert::TryFrom<std::vec::Vec<i64>>` for `[i64; 3]`
    = note: required because of the requirements on the impl of `std::convert::TryInto<[i64; 3]>` for `std::vec::Vec<i64>`

    error: aborting due to 2 previous errors

    For more information about this error, try `rustc --explain E0277`.
    error: failed to compile `exloli v0.5.0 ( https://github.com/Aloxaf/exloli#84445031)`, intermediate artifacts can be found at `/tmp/cargo-installoCOdZU`

    完全看不懂是什么意思·····网上也搜不到
    求大佬给解释下这个该怎么解决

    前面所有编译都是 ok 的,编译完才出现了这个错误
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2806 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 08:18 · PVG 16:18 · LAX 01:18 · JFK 04:18
    ♥ Do have faith in what you're doing.