Skip to content

Commit 821199c

Browse files
committed
Modify primary span label for E0308
The previous output was unintuitive to users.
1 parent 17369f3 commit 821199c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/track-diagnostics.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0308]: mismatched types
22
--> $DIR/track-diagnostics.rs:LL:CC
33
|
44
LL | const S: A = B;
5-
| ^ expected struct `A`, found struct `B`
5+
| ^ expected `A`, found `B`
66
-Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:LL:CC
77

88
error: aborting due to previous error

0 commit comments

Comments
 (0)