You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-typesRelevant to the types team, which will review and decide on the PR/issue.
use std::future::Future;traitAsyncFn<I,O>:Fn(I) -> Self::Fut{typeFut:Future<Output = O>;}impl<F,Fut,I,O>AsyncFn<I,O>forFwhereF:Fn(I) -> Fut,Fut:Future<Output = O>{typeFut = Fut;}fnokay<F:for<'a>AsyncFn<&'a mutVec<u8>,()>>(f:F){letmut data = vec![];let fut = f(&mut data);}
I expected to see this happen: Compiles without errors.
Instead, this happened:
With -Znext-solver:
error[E0275]: overflow evaluating the requirement `<FasFnOnce<(&mutVec<u8>,)>>::Output == _`
--> a.rs:18:15
|
18 | let fut = f(&mut data);
| ^^^^^^^^^^^^
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`a`)
error[E0275]: overflow evaluating the requirement `<FasAsyncFn<&mutVec<u8>,()>>::Fut normalizes-to _`
--> a.rs:18:15
|
18 | let fut = f(&mut data);
| ^^^^^^^^^^^^
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`a`)
error: aborting due to 2 previous errors
saethlin
added
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-types
Relevant to the types team, which will review and decide on the PR/issue.
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Jan 7, 2024
C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-typesRelevant to the types team, which will review and decide on the PR/issue.
I tried this code (with
-Znext-solver
):I expected to see this happen: Compiles without errors.
Instead, this happened:
With
-Znext-solver
:rustc --version --verbose
:The text was updated successfully, but these errors were encountered: