mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-16 05:58:41 +00:00
23 lines
634 B
Text
23 lines
634 B
Text
error: use `assert_eq` for better reporting
|
|
--> $DIR/should_assert_eq.rs:13:5
|
|
|
|
|
13 | assert!(1 == 2);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/should_assert_eq.rs:4:9
|
|
|
|
|
4 | #![deny(should_assert_eq)]
|
|
| ^^^^^^^^^^^^^^^^
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
error: use `assert_eq` for better reporting
|
|
--> $DIR/should_assert_eq.rs:14:5
|
|
|
|
|
14 | assert!(Debug(1) == Debug(2));
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
error: aborting due to 2 previous errors
|
|
|