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
Error when trait bound not satisfied for function argument should point at argument #41781
A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.WG-diagnosticsWorking group: Diagnostics
error[E0277]: the trait bound `u32: T` is not satisfied
--> <anon>:6:5
|
6 | function(0u32);
| ^^^^^^^^ the trait `T` is not implemented for `u32`
|
= note: required by `function`
error: aborting due to previous error
When there are multiple arguments, this is much less helpful than if the span pointed at the argument in question.
A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.WG-diagnosticsWorking group: Diagnostics
Activity
estebank commentedon Mar 15, 2018
Current output:
Rollup merge of rust-lang#64498 - estebank:point-at-arg, r=Centril
Auto merge of #64498 - estebank:point-at-arg, r=Centril