Update rustdoc-ui test

This commit is contained in:
Esteban Küber
2026-03-14 19:15:56 +00:00
parent 2e4a420db0
commit 724c1a02e1
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -11,3 +11,4 @@
//~^ ERROR mismatched types
//~| NOTE created at
//~| NOTE expected `A`, found `B`
//~| NOTE expected because of the type of the const
+3 -1
View File
@@ -2,7 +2,9 @@ error[E0308]: mismatched types
--> $DIR/track-diagnostics.rs:LL:CC
|
LL | pub const S: A = B;
| ^ expected `A`, found `B`
| - ^ expected `A`, found `B`
| |
| expected because of the type of the constant
|
= note: -Ztrack-diagnostics: created at compiler/rustc_trait_selection/src/error_reporting/infer/mod.rs:LL:CC