rust-clippy/tests/ui/missing_assert_message.stderr

132 lines
3.7 KiB
Text
Raw Normal View History

error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:12:5
|
LL | assert!(foo());
| ^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
= note: `-D clippy::missing-assert-message` implied by `-D warnings`
error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:13:5
|
LL | assert_eq!(foo(), foo());
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:14:5
|
LL | assert_ne!(foo(), foo());
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:15:5
|
LL | debug_assert!(foo());
| ^^^^^^^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:16:5
|
LL | debug_assert_eq!(foo(), foo());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:17:5
|
LL | debug_assert_ne!(foo(), foo());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:22:5
|
LL | assert!(bar!(true));
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:23:5
|
LL | assert!(bar!(true, false));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:24:5
|
LL | assert_eq!(bar!(true), foo());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:25:5
|
LL | assert_ne!(bar!(true, true), bar!(true));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:30:5
|
LL | assert!(foo(),);
| ^^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:31:5
|
LL | assert_eq!(foo(), foo(),);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:32:5
|
LL | assert_ne!(foo(), foo(),);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:33:5
|
LL | debug_assert!(foo(),);
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:34:5
|
LL | debug_assert_eq!(foo(), foo(),);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
error: assert without any message
2023-04-20 15:19:36 +00:00
--> $DIR/missing_assert_message.rs:35:5
|
LL | debug_assert_ne!(foo(), foo(),);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider describing why the failing assert is problematic
error: aborting due to 16 previous errors