mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +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. |
||
---|---|---|
.. | ||
issue-45124.rs | ||
try-block-bad-lifetime.rs | ||
try-block-bad-lifetime.stderr | ||
try-block-bad-type.rs | ||
try-block-bad-type.stderr | ||
try-block-catch.rs | ||
try-block-catch.stderr | ||
try-block-in-edition2015.rs | ||
try-block-in-edition2015.stderr | ||
try-block-in-match-arm.rs | ||
try-block-in-match.rs | ||
try-block-in-return.rs | ||
try-block-in-while.rs | ||
try-block-in-while.stderr | ||
try-block-maybe-bad-lifetime.rs | ||
try-block-maybe-bad-lifetime.stderr | ||
try-block-opt-init.rs | ||
try-block-opt-init.stderr | ||
try-block-type-error.rs | ||
try-block-type-error.stderr | ||
try-block-unreachable-code-lint.rs | ||
try-block-unreachable-code-lint.stderr | ||
try-block-unused-delims.fixed | ||
try-block-unused-delims.rs | ||
try-block-unused-delims.stderr | ||
try-block.rs | ||
try-is-identifier-edition2015.rs |