Surprising internals in TryTrait revealed in diagnostic #112939
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Code
Current output
Desired output
Rationale and extra context
The
fn branch(self) -> ControlFlow<Self::Residual, Self::Output>
content is unhelpful as it's internal to?
, as is the confusing and invalid suggestion ofclone().aggregator.bearer_token?.clone()
.Other cases
No response
Anything else?
In this case,
as_deref()
/as_ref()
was actually the preferable change to clone, but that's probably a distinct diagnostic concernThe text was updated successfully, but these errors were encountered: