-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ICE could not unify !
with revealed type
#135730
Comments
use std::future::Future;
fn foo() -> impl ?Future<Output = impl Send> {
()
}
pub fn main() {} I guess edition 2024 added Future to the prelude which is why the flag showed up as "required" The above example compiles with |
Regression in nightly-2024-03-12 fetching https://static.rust-lang.org/dist/2024-03-11/channel-rust-nightly-git-commit-hash.txt |
my guess would be #121796 🤔 |
Reject `impl Trait` within `?Trait` generics or assoc ty bounds fixes rust-lang#135730 Also a breaking change, so let's see what crater says. This has been an unconditional warning since *before* 1.0
…ler-errors Reject `?Trait` bounds in various places where we unconditionally warned since 1.0 fixes rust-lang#135730 fixes rust-lang#135809 Also a breaking change, so let's see what crater says. This has been an unconditional warning since *before* 1.0
Rollup merge of rust-lang#135841 - oli-obk:push-qxlnokwrkkym, r=compiler-errors Reject `?Trait` bounds in various places where we unconditionally warned since 1.0 fixes rust-lang#135730 fixes rust-lang#135809 Also a breaking change, so let's see what crater says. This has been an unconditional warning since *before* 1.0
auto-reduced (treereduce-rust):
original:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc --edition=2024
Program output
The text was updated successfully, but these errors were encountered: