2023-08-24 19:32:12 +00:00
|
|
|
error: #[should_panic] attribute without a reason
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/should_panic_without_expect.rs:5:1
|
2023-08-24 19:32:12 +00:00
|
|
|
|
|
|
|
|
LL | #[should_panic]
|
|
|
|
| ^^^^^^^^^^^^^^^ help: consider specifying the expected panic: `#[should_panic(expected = /* panic message */)]`
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/should_panic_without_expect.rs:2:9
|
2023-08-24 19:32:12 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::should_panic_without_expect)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-11-21 17:08:42 +00:00
|
|
|
error: aborting due to 1 previous error
|
2023-08-24 19:32:12 +00:00
|
|
|
|