-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build e01_basic_ping_bot #2756
Comments
What version of Rust are you getting the error on? You can fetch this with |
@GnomedDev I get |
I would recommend running |
That didn't seem to do anything. |
That error message also seems a bit malformed. This isn't a valid function signature:
Also, the signature of
|
@mkrasnitski I have no idea what's causing the malformed error message, but I reinstalled my toolchain as well as rust itself, tried switching from GNU to MSVC, and tested out the nightly toolchain with no result. What finally ended up working was just changing Serenity's version to v0.11.7. It doesn't really make any sense because I've been using v0.12.0 the whole time and the problem started spontaneously. I'll leave the issue open since my fix was to downgrade, so there must be something up with the current version of Serenity. |
If I download the basic ping bot example, modify Cargo.toml to make it build as its own independent project, and then try to build it, I get a compiler error. I am using Windows 10, I have not tested it on Linux. The error only popped up if I made an optimized build in the project I'm working on where I encountered it, but it seems to happen all the time in the minimal reproduction.
The error:
Steps to reproduce:
serenity = { version = "0.12.0", default-features = false, features = ["client", "gateway", "rustls_backend", "model"] }
cargo build
The text was updated successfully, but these errors were encountered: