mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
error: use `assert_eq` for better reporting
|
|
--> $DIR/should_assert_eq.rs:14:5
|
|
|
|
|
14 | assert!(1 == 2);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/should_assert_eq.rs:5:9
|
|
|
|
|
5 | #![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:15:5
|
|
|
|
|
15 | assert!(Debug(1) == Debug(2));
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
error: use `assert_ne` for better reporting
|
|
--> $DIR/should_assert_eq.rs:17:5
|
|
|
|
|
17 | assert!(Debug(1) != Debug(2));
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
error: use `assert_eq` for better reporting
|
|
--> $DIR/should_assert_eq.rs:24:5
|
|
|
|
|
24 | assert!(x == y);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
error: use `assert_ne` for better reporting
|
|
--> $DIR/should_assert_eq.rs:27:5
|
|
|
|
|
27 | assert!(x != y);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
error: aborting due to 5 previous errors
|
|
|