mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-25 11:57:25 +00:00
Address some comments
This commit is contained in:
parent
831b99436c
commit
beae0d298e
2 changed files with 18 additions and 0 deletions
8
tests/ui/track-diagnostics.rs
Normal file
8
tests/ui/track-diagnostics.rs
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
// compile-flags: -Z track-diagnostics
|
||||||
|
// error-pattern: created at
|
||||||
|
|
||||||
|
struct A;
|
||||||
|
struct B;
|
||||||
|
const S: A = B;
|
||||||
|
|
||||||
|
fn main() {}
|
10
tests/ui/track-diagnostics.stderr
Normal file
10
tests/ui/track-diagnostics.stderr
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
error[E0308]: mismatched types
|
||||||
|
--> $DIR/track-diagnostics.rs:6:14
|
||||||
|
|
|
||||||
|
LL | const S: A = B;
|
||||||
|
| ^ expected struct `A`, found struct `B`
|
||||||
|
-Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:2275:31
|
||||||
|
|
||||||
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
For more information about this error, try `rustc --explain E0308`.
|
Loading…
Add table
Reference in a new issue