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 的,编译完才出现了这个错误