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
{{ message }}
Repository navigation
Asynchronous closures make trait constraint inference recursive #146399
I expected to see this happen: ...type mismatch...
Instead, this happened:
error[E0275]: overflow evaluating the requirement `(&str, _): std::marker::Sized`
--> genmeta-ssh3/src/config.rs:127:22
|
127 | let mut errors = Vec::new();
| ^^^
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`genmeta_ssh3`)
= note: required because it appears within the type `(&str, (&str, _))`
= note: required because it appears within the type `(&str, (&str, (&str, _)))`
= note: required because it appears within the type `(&str, (&str, (&str, (&str, _))))`
= note: required because it appears within the type `(&str, (&str, (&str, (&str, (&str, _)))))`
...... continue recursion
error[E0308]: mismatched types --> /tmp/now.rs:8:21 | 2 | let mut errors = Vec::new(); | ---------- here the type of `errors` is inferred to be `Vec<(&str, ())>`... 8 | errors.push(a); | ---- ^ expected `(&str, ())`, found `()` | | | arguments to this method are incorrect | = note: expected tuple `(&str, ())` found unit type `()`note: method defined here --> library/alloc/src/vec/mod.rs:995:12 |995 | pub fn push(&mut self, value: T) { | ^^^^error: aborting due to 1 previous error
Activity
GrigorenkoPV commentedon Sep 10, 2025
The error used to be
before #119989
chenyukang commentedon Aug 25, 2026
here seems better? output from PR #161705