V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
qinmenghuo
V2EX  ›  问与答

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

  •  
  •   qinmenghuo · 2021-02-11 18:28:33 +08:00 · 691 次点击
    这是一个创建于 1375 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 的,编译完才出现了这个错误
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1332 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 17:21 · PVG 01:21 · LAX 09:21 · JFK 12:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.