File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11// compile-flags: -Z track-diagnostics
22// error-pattern: created at
33
4+ // Normalize the emitted location so this doesn't need
5+ // updating everytime someone adds or removes a line.
6+ // normalize-stderr-test ".rs:\d+:\d+" -> ".rs:$$LINE::$$COL"
7+
48struct A ;
59struct B ;
610const S : A = B ;
Original file line number Diff line number Diff line change 11error[E0308]: mismatched types
2- --> $DIR/track-diagnostics.rs:6:14
2+ --> $DIR/track-diagnostics.rs:$LINE::$COL
33 |
44LL | const S: A = B;
55 | ^ expected struct `A`, found struct `B`
6- -Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:2275:31
6+ -Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:$LINE::$COL
77
88error: aborting due to previous error
99
You can’t perform that action at this time.
0 commit comments