about summary refs log tree commit diff
path: root/tests/ui/impl-trait/impl-trait-in-macro.stderr
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-02-02 01:04:21 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-02-02 02:39:43 +0000
commitc75e601543ebefb14796041a521b7a5c2ae917de (patch)
treec6a257c88affeba96ae6b7589b608b8c0d3305db /tests/ui/impl-trait/impl-trait-in-macro.stderr
parent7f36543a48e52912ac6664a70c0a5b9d86509eaf (diff)
downloadrust-c75e601543ebefb14796041a521b7a5c2ae917de.tar.gz
rust-c75e601543ebefb14796041a521b7a5c2ae917de.zip
Highlight clarifying information in "expected/found" error
When the expected and found types have the same textual representation, we add clarifying in parentheses. We now visually highlight it in the output.

Detect a corner case where the clarifying information would be the same for both types and skip it, as it doesn't add anything useful.
Diffstat (limited to 'tests/ui/impl-trait/impl-trait-in-macro.stderr')
-rw-r--r--tests/ui/impl-trait/impl-trait-in-macro.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/impl-trait/impl-trait-in-macro.stderr b/tests/ui/impl-trait/impl-trait-in-macro.stderr
index 4380f47c5de..2f934694f83 100644
--- a/tests/ui/impl-trait/impl-trait-in-macro.stderr
+++ b/tests/ui/impl-trait/impl-trait-in-macro.stderr
@@ -12,8 +12,8 @@ LL |     let mut a = x;
 LL |     a = y;
    |         ^ expected type parameter `impl Debug`, found a different type parameter `impl Debug`
    |
-   = note: expected type parameter `impl Debug` (type parameter `impl Debug`)
-              found type parameter `impl Debug` (type parameter `impl Debug`)
+   = note: expected type parameter `impl Debug`
+              found type parameter `impl Debug`
    = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
    = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters