Confusing compile error messages about algebraic data type #86265
Labels
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`.
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried to compile this code:
I got compile error message,
I expect
16 | async fn update_first_ac_of_problems<'a, I: Iterator<Item = &'a i32> + std::marker::Send> (
is right.Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: