Skip to content

Better separation in tooltip messages for errors #12711

@tehlordvortex

Description

@tehlordvortex

Hello!
So, I'm new to Rust and I discovered something that has been making my experience worse so far: The tooltip that pops-up when there's an issue does not properly segment the output from the compiler.
For example, considering this tooltip:
image
I was quite confused at first because i read it all as one sentence (i.e. the placeholder _ is not allowed within types on item signatures for return types not allowed in type signatures, which made no sense to me at all)
But the actual error is just the first line, while the second line points to where the issue is, as shown in the compiler output:
image
Seeing the compiler output helped me make sense of the problem.

Perhaps the structure of the tooltip could be improved in such a manner that it's clearer, similar to how it is on the command line, what exactly is the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions