2023-08-24 14:32:12 -05:00
|
|
|
error: #[should_panic] attribute without a reason
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/should_panic_without_expect.rs:5:1
|
2023-08-24 14:32:12 -05: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 08:25:18 -06:00
|
|
|
--> tests/ui/should_panic_without_expect.rs:2:9
|
2023-08-24 14:32:12 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::should_panic_without_expect)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-11-21 11:08:42 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-08-24 14:32:12 -05:00
|
|
|
|