about summary refs log tree commit diff
path: root/tests/ui/const-generics/occurs-check
AgeCommit message (Collapse)AuthorLines
2025-08-22On E0277, point at type that doesn't implement boundEsteban Küber-1/+1
When encountering an unmet trait bound, point at local type that doesn't implement the trait: ``` error[E0277]: the trait bound `Bar<T>: Foo` is not satisfied --> $DIR/issue-64855.rs:9:19 | LL | pub struct Bar<T>(<Self as Foo>::Type) where Self: ; | ^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | help: the trait `Foo` is not implemented for `Bar<T>` --> $DIR/issue-64855.rs:9:1 | LL | pub struct Bar<T>(<Self as Foo>::Type) where Self: ; | ^^^^^^^^^^^^^^^^^ ```
2024-11-02Add trait diff highlighting logic and use it in E0277Esteban Küber-1/+2
When a trait is not implemented for a type, but there *is* an `impl` for another type or different trait params, we format the output to use highlighting in the same way that E0308 does for types. The logic accounts for 3 cases: - When both the type and trait in the expected predicate and the candidate are different - When only the types are different - When only the trait generic params are different For each case, we use slightly different formatting and wording.
2024-09-22Don't call const normalize in error reportingMichael Goulet-1/+1
2024-09-10generalize: track relevant info in cache keylcnr-7/+7
2024-03-22add test for #97725Matthias Krüger-1/+6
Fixes #97725
2024-02-22remove `sub_relations` from infcx, recompute in diagnosticslcnr-9/+8
we don't track them when canonicalizing or when freshening, resulting in instable caching in the old solver, and issues when instantiating query responses in the new one.
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-2/+2
2023-11-24Show number in error message even for one errorNilstrieb-6/+6
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-10-02For a single impl candidate, try to unify it with error trait refMichael Goulet-1/+1
2023-04-25vars are ?Michael Goulet-8/+8
2023-02-21Specify what 'this' actually isMichael Goulet-1/+1
2023-01-11Move /src/test to /testsAlbert Larsan-0/+215