mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
b7fc1a7431
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. |
||
---|---|---|
.. | ||
auxiliary | ||
do_not_recommend | ||
on_unimplemented | ||
can_use_the_diagnostic_name_in_other_places.rs | ||
deny_malformed_attribute.rs | ||
deny_malformed_attribute.stderr | ||
existing_proc_macros.rs | ||
malformed_foreign_on_unimplemented.rs | ||
malformed_foreign_on_unimplemented.stderr | ||
non_existing_attributes_accepted.rs | ||
non_existing_attributes_accepted.stderr | ||
requires_path.rs | ||
requires_path.stderr | ||
suggest_typos.rs | ||
suggest_typos.stderr |