where_clauses_object_safety warning does not identify the offending line #102546
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.
Given the following code (playground):
The current output is:
The first part of the error message should refer to line 16, in
main()
, where the program tries to make a traitB
object. Other 'object safety' errors do this correctly (e.g. if traitB
is not object-safe because one of its methods hasSelf
in return position).S: #51443
The text was updated successfully, but these errors were encountered: