-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Rocket does not compile on nightly-2021-10-15 #1948
Comments
A similar issue affects Rocket 0.4.10: rust-lang/rust#89935 |
Minimised: trait Foo: Baz {}
trait Bar {}
trait Baz: Bar {
fn bar(&self);
}
impl<T: Foo> Bar for T {}
impl<T: Foo> Baz for T {
fn bar(&self) {}
}
fn accept_foo(x: Box<dyn Foo>) {
x.bar();
} Oops... wrong repo, was trying to post to the rust issue. I guess I'll leave the comment here though :) |
same problem happened on me, any work around? |
I think the same issue is happening with the latest beta. $ cargo version
cargo 1.57.0-beta (c7957a74b 2021-10-11) |
@pineapplehunter Yes, the rustc fix was also backported to beta 1.57 |
Right now $ rustc -V
rustc 1.58.0-nightly (547a6ffee 2021-10-21) |
Since the upstream issue has been fixed, @mpajkowski would you like to close this? |
Description
Compilation fails with following error:
To Reproduce
main.rs:
Cargo.toml:
rust-toolchain.toml:
Environment:
The text was updated successfully, but these errors were encountered: