2017-02-17 08:32:51 +00:00
|
|
|
error: use `assert_eq` for better reporting
|
2017-08-01 15:54:21 +00:00
|
|
|
--> $DIR/should_assert_eq.rs:14:5
|
2017-02-17 08:32:51 +00:00
|
|
|
|
|
2017-02-18 08:00:36 +00:00
|
|
|
14 | assert!(1 == 2);
|
2017-02-17 08:32:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D should-assert-eq` implied by `-D warnings`
|
2017-02-17 08:32:51 +00:00
|
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
|
|
|
|
error: use `assert_eq` for better reporting
|
2017-08-01 15:54:21 +00:00
|
|
|
--> $DIR/should_assert_eq.rs:15:5
|
2017-02-17 08:32:51 +00:00
|
|
|
|
|
2017-02-18 08:00:36 +00:00
|
|
|
15 | assert!(Debug(1) == Debug(2));
|
2017-02-17 08:32:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
|
2017-02-22 07:47:18 +00:00
|
|
|
error: use `assert_ne` for better reporting
|
2017-08-01 15:54:21 +00:00
|
|
|
--> $DIR/should_assert_eq.rs:17:5
|
2017-02-22 07:47:18 +00:00
|
|
|
|
|
|
|
|
17 | assert!(Debug(1) != Debug(2));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
|
2017-05-15 20:49:20 +00:00
|
|
|
error: use `debug_assert_eq` for better reporting
|
2017-08-01 15:54:21 +00:00
|
|
|
--> $DIR/should_assert_eq.rs:22:5
|
2017-05-15 20:49:20 +00:00
|
|
|
|
|
|
|
|
22 | debug_assert!(4 == 5);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
|
|
|
|
error: use `debug_assert_ne` for better reporting
|
2017-08-01 15:54:21 +00:00
|
|
|
--> $DIR/should_assert_eq.rs:23:5
|
2017-05-15 20:49:20 +00:00
|
|
|
|
|
|
|
|
23 | debug_assert!(4 != 6);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
|
2017-02-17 10:59:52 +00:00
|
|
|
error: use `assert_eq` for better reporting
|
2017-08-01 15:54:21 +00:00
|
|
|
--> $DIR/should_assert_eq.rs:27:5
|
2017-02-22 07:47:18 +00:00
|
|
|
|
|
2017-05-15 20:49:20 +00:00
|
|
|
27 | assert!(x == y);
|
2017-02-22 07:47:18 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
|
|
|
|
error: use `assert_ne` for better reporting
|
2017-08-01 15:54:21 +00:00
|
|
|
--> $DIR/should_assert_eq.rs:30:5
|
2017-02-17 10:59:52 +00:00
|
|
|
|
|
2017-05-15 20:49:20 +00:00
|
|
|
30 | assert!(x != y);
|
2017-02-17 10:59:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in a macro outside of the current crate
|
|
|
|
|
2017-07-03 04:37:30 +00:00
|
|
|
error: aborting due to 7 previous errors
|
2017-02-17 08:32:51 +00:00
|
|
|
|