about summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0746.stderr
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-27/+0
2021-08-11Modify structured suggestion outputEsteban Küber-2/+2
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2020-04-20Suggest `-> impl Trait` and `-> Box<dyn Trait>` on fn that doesn't returnEsteban Küber-2/+2
During development, a function could have a return type set that is a bare trait object by accident. We already suggest using either a boxed trait object or `impl Trait` if the return paths will allow it. We now do so too when there are *no* return paths or they all resolve to `!`. We still don't handle cases where the trait object is *not* the entirety of the return type gracefully.
2020-01-16review commentsEsteban Küber-4/+4
2020-01-16Add E0746 explanation to the indexEsteban Küber-0/+1
2020-01-16Make `impl Trait` suggestion in E0746 `MachineApplicable`Esteban Küber-2/+2
2020-01-16Elide E0308 errors in favor of E0746Esteban Küber-38/+2
When a type error involves a `dyn Trait` as the return type, do not emit the type error, as the "return type is not `Sized`" error will provide enough information to the user.
2020-01-16Specific error for unsized `dyn Trait` return typeEsteban Küber-0/+62
Suggest `impl Trait` when possible, and `Box<dyn Trait>` otherwise.