Created
January 4, 2018 02:05
-
-
Save trevorjd/1a93c40bc382a5004c853d55ce12e684 to your computer and use it in GitHub Desktop.
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
tjd@ubuntu:~/RustBot$ cargo run | |
Compiling rust_bot v0.1.0 (file:///home/tjd/RustBot) | |
error[E0432]: unresolved import `serenity::ext` | |
--> src/main.rs:29:15 | |
| | |
29 | use serenity::ext::framework::help_commands; | |
| ^^^ Could not find `ext` in `serenity` | |
warning: doc comment not used by rustdoc | |
--> src/error.rs:6:1 | |
| | |
6 | / error_chain! { | |
7 | | foreign_links { | |
8 | | TomlParseError(TomlParseError); | |
9 | | Io(IoError); | |
... | | |
12 | | } | |
13 | | } | |
| |_^ | |
| | |
= note: #[warn(unused_doc_comment)] on by default | |
= note: this error originates in a macro outside of the current crate | |
warning: doc comment not used by rustdoc | |
--> src/error.rs:6:1 | |
| | |
6 | / error_chain! { | |
7 | | foreign_links { | |
8 | | TomlParseError(TomlParseError); | |
9 | | Io(IoError); | |
... | | |
12 | | } | |
13 | | } | |
| |_^ | |
| | |
= note: this error originates in a macro outside of the current crate | |
error[E0619]: the type of this value must be known in this context | |
--> src/main.rs:60:31 | |
| | |
60 | client.with_framework(|f| f | |
| _______________________________^ | |
61 | | .configure(|c| c | |
62 | | .prefix("??") | |
63 | | .on_mention(true)) | |
| |______________________________^ | |
error[E0277]: the trait bound `[closure@src/main.rs:60:27: 84:48]: serenity::framework::Framework` is not satisfied | |
--> src/main.rs:60:12 | |
| | |
60 | client.with_framework(|f| f | |
| ^^^^^^^^^^^^^^ the trait `serenity::framework::Framework` is not implemented for `[closure@src/main.rs:60:27: 84:48]` | |
error[E0308]: mismatched types | |
--> src/commands/meta.rs:17:20 | |
| | |
17 | return Err("Failed send message".to_owned()); | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| expected struct `serenity::framework::standard::Error`, found struct `std::string::String` | |
| help: try using a variant of the expected type: `serenity::framework::standard::<unnamed>("Failed send message".to_owned())` | |
| | |
= note: expected type `serenity::framework::standard::Error` | |
found type `std::string::String` | |
error[E0308]: mismatched types | |
--> src/commands/meta.rs:24:20 | |
| | |
24 | return Err("Failed to send message".to_owned()); | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| expected struct `serenity::framework::standard::Error`, found struct `std::string::String` | |
| help: try using a variant of the expected type: `serenity::framework::standard::<unnamed>("Failed to send message".to_owned())` | |
| | |
= note: expected type `serenity::framework::standard::Error` | |
found type `std::string::String` | |
error[E0308]: mismatched types | |
--> src/commands/meta.rs:42:32 | |
| | |
42 | return Err("Failed to get Role for RoleId".to_owned()); | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| expected struct `serenity::framework::standard::Error`, found struct `std::string::String` | |
| help: try using a variant of the expected type: `serenity::framework::standard::<unnamed>("Failed to get Role for RoleId".to_owned())` | |
| | |
= note: expected type `serenity::framework::standard::Error` | |
found type `std::string::String` | |
error[E0308]: mismatched types | |
--> src/commands/meta.rs:49:32 | |
| | |
49 | return Err("Failed to get Member's joined at".to_owned()); | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| expected struct `serenity::framework::standard::Error`, found struct `std::string::String` | |
| help: try using a variant of the expected type: `serenity::framework::standard::<unnamed>("Failed to get Member\'s joined at".to_owned())` | |
| | |
= note: expected type `serenity::framework::standard::Error` | |
found type `std::string::String` | |
error[E0308]: mismatched types | |
--> src/commands/meta.rs:70:28 | |
| | |
70 | return Err("Failed to send message".to_owned()) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| expected struct `serenity::framework::standard::Error`, found struct `std::string::String` | |
| help: try using a variant of the expected type: `serenity::framework::standard::<unnamed>("Failed to send message".to_owned())` | |
| | |
= note: expected type `serenity::framework::standard::Error` | |
found type `std::string::String` | |
error: aborting due to 8 previous errors | |
error: Could not compile `rust_bot`. | |
To learn more, run the command again with --verbose. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment