2017-02-17 02:32:51 -06:00
|
|
|
error: use `assert_eq` for better reporting
|
2017-02-18 02:00:36 -06:00
|
|
|
--> $DIR/should_assert_eq.rs:14:5
|
2017-02-17 02:32:51 -06:00
|
|
|
|
|
2017-02-18 02:00:36 -06:00
|
|
|
14 | assert!(1 == 2);
|
2017-02-17 02:32:51 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2017-02-18 02:00:36 -06:00
|
|
|
--> $DIR/should_assert_eq.rs:5:9
|
2017-02-17 02:32:51 -06:00
|
|
|
|
|
2017-02-18 02:00:36 -06:00
|
|
|
5 | #![deny(should_assert_eq)]
|
2017-02-17 02:32:51 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
|
|
|
|
error: use `assert_eq` for better reporting
|
2017-02-18 02:00:36 -06:00
|
|
|
--> $DIR/should_assert_eq.rs:15:5
|
2017-02-17 02:32:51 -06:00
|
|
|
|
|
2017-02-18 02:00:36 -06:00
|
|
|
15 | assert!(Debug(1) == Debug(2));
|
2017-02-17 02:32:51 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
|
2017-02-22 01:47:18 -06:00
|
|
|
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
|
|
|
|
|
2017-02-17 04:59:52 -06:00
|
|
|
error: use `assert_eq` for better reporting
|
2017-02-22 01:47:18 -06:00
|
|
|
--> $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
|
2017-02-17 04:59:52 -06:00
|
|
|
|
|
2017-02-22 01:47:18 -06:00
|
|
|
27 | assert!(x != y);
|
2017-02-17 04:59:52 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
|
2017-02-22 01:47:18 -06:00
|
|
|
error: aborting due to 5 previous errors
|
2017-02-17 02:32:51 -06:00
|
|
|
|