rust/tests/ui/const-generics/defaults
Esteban Küber b7fc1a7431 Add trait diff highlighting logic and use it in E0277
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-11-02 03:08:04 +00:00
..
auxiliary
complex-generic-default-expr.min.stderr
complex-generic-default-expr.rs
complex-unord-param.rs
const-default.rs
const-param-as-default-value.rs
const-param-in-ty-defaults.rs
default-annotation.rs
default-const-param-cannot-reference-self.rs
default-const-param-cannot-reference-self.stderr
default-on-impl.rs
default-on-impl.stderr
default-param-wf-concrete.next.stderr
default-param-wf-concrete.old.stderr
default-param-wf-concrete.rs
doesnt_infer.rs
doesnt_infer.stderr
external.rs
forward-declared.rs
forward-declared.stderr
generic-expr-default-concrete.rs
generic-expr-default-concrete.stderr
generic-expr-default-mismatched-types.rs
generic-expr-default-mismatched-types.stderr
generic-expr-default.rs
generic-expr-default.stderr
intermixed-lifetime.rs
intermixed-lifetime.stderr
mismatch.rs
mismatch.stderr
mismatched_ty_const_in_trait_impl.rs
mismatched_ty_const_in_trait_impl.stderr
param-order-err-pretty-prints-default.rs
param-order-err-pretty-prints-default.stderr
pretty-printing-ast.rs
pretty-printing-ast.stdout
repr-c-issue-82792.rs
rp_impl_trait_fail.rs
rp_impl_trait_fail.stderr
rp_impl_trait.rs
self-referential.rs
self-referential.stderr
simple-defaults.rs
trait_object_lt_defaults.rs
trait_objects_fail.rs
trait_objects_fail.stderr
trait_objects.rs
type-default-const-param-name.rs
wfness.rs
wfness.stderr
wrong-order.rs
wrong-order.stderr