rust/clippy_tests/examples/should_assert_eq.stderr

68 lines
2.0 KiB
Plaintext
Raw Normal View History

error: use `assert_eq` for better reporting
--> should_assert_eq.rs:14:5
|
2017-02-18 02:00:36 -06:00
14 | assert!(1 == 2);
| ^^^^^^^^^^^^^^^^
|
= note: `-D should-assert-eq` implied by `-D warnings`
= note: this error originates in a macro outside of the current crate
error: use `assert_eq` for better reporting
--> should_assert_eq.rs:15:5
|
2017-02-18 02:00:36 -06:00
15 | assert!(Debug(1) == Debug(2));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D should-assert-eq` implied by `-D warnings`
= note: this error originates in a macro outside of the current crate
error: use `assert_ne` for better reporting
--> should_assert_eq.rs:17:5
|
17 | assert!(Debug(1) != Debug(2));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D should-assert-eq` implied by `-D warnings`
= note: this error originates in a macro outside of the current crate
2017-05-15 15:49:20 -05:00
error: use `debug_assert_eq` for better reporting
--> should_assert_eq.rs:22:5
2017-05-15 15:49:20 -05:00
|
22 | debug_assert!(4 == 5);
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D should-assert-eq` implied by `-D warnings`
2017-05-15 15:49:20 -05:00
= note: this error originates in a macro outside of the current crate
error: use `debug_assert_ne` for better reporting
--> should_assert_eq.rs:23:5
2017-05-15 15:49:20 -05:00
|
23 | debug_assert!(4 != 6);
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D should-assert-eq` implied by `-D warnings`
2017-05-15 15:49:20 -05:00
= 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
--> should_assert_eq.rs:27:5
|
2017-05-15 15:49:20 -05:00
27 | assert!(x == y);
| ^^^^^^^^^^^^^^^^
|
= note: `-D should-assert-eq` implied by `-D warnings`
= note: this error originates in a macro outside of the current crate
error: use `assert_ne` for better reporting
--> should_assert_eq.rs:30:5
2017-02-17 04:59:52 -06:00
|
2017-05-15 15:49:20 -05:00
30 | assert!(x != y);
2017-02-17 04:59:52 -06:00
| ^^^^^^^^^^^^^^^^
|
= note: `-D should-assert-eq` implied by `-D warnings`
2017-02-17 04:59:52 -06:00
= note: this error originates in a macro outside of the current crate
error: aborting due to previous error(s)
To learn more, run the command again with --verbose.