mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 09:03:18 +00:00
14 lines
472 B
Text
14 lines
472 B
Text
error: #[should_panic] attribute without a reason
|
|
--> $DIR/should_panic_without_expect.rs:5:1
|
|
|
|
|
LL | #[should_panic]
|
|
| ^^^^^^^^^^^^^^^ help: consider specifying the expected panic: `#[should_panic(expected = /* panic message */)]`
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/should_panic_without_expect.rs:2:9
|
|
|
|
|
LL | #![deny(clippy::should_panic_without_expect)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to previous error
|
|
|