Skip to content

Commit beae0d2

Browse files
author
mejrs
committed
Address some comments
1 parent 831b994 commit beae0d2

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

tests/ui/track-diagnostics.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// compile-flags: -Z track-diagnostics
2+
// error-pattern: created at
3+
4+
struct A;
5+
struct B;
6+
const S: A = B;
7+
8+
fn main() {}

tests/ui/track-diagnostics.stderr

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
error[E0308]: mismatched types
2+
--> $DIR/track-diagnostics.rs:6:14
3+
|
4+
LL | const S: A = B;
5+
| ^ expected struct `A`, found struct `B`
6+
-Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:2275:31
7+
8+
error: aborting due to previous error
9+
10+
For more information about this error, try `rustc --explain E0308`.

0 commit comments

Comments
 (0)