Esteban Küber
3ff758877f
More accurate suggestion for -> Box<dyn Trait>
or -> impl Trait
...
When encountering `-> Trait`, suggest `-> Box<dyn Trait>` (instead of `-> Box<Trait>`.
If there's a single returned type within the `fn`, suggest `-> impl Trait`.
2024-07-19 19:39:37 +00:00
Nilstrieb
41e8d152dc
Show number in error message even for one error
...
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00
Michael Goulet
3db2bcf4eb
Remove return type sized check hack from hir typeck
2023-05-18 01:53:01 +00:00
Michael Goulet
795fdf7d61
Simplify suggestion when returning bare dyn trait
2023-05-18 01:47:55 +00:00
Esteban Küber
62ba3e70a1
Modify primary span label for E0308
...
The previous output was unintuitive to users.
2023-01-30 20:12:19 +00:00
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00