Files
rust/tests/ui/should_panic_without_expect.rs

23 lines
340 B
Rust
Raw Normal View History

//@no-rustfix
#![deny(clippy::should_panic_without_expect)]
#[test]
#[should_panic]
2025-02-11 17:57:08 +01:00
//~^ should_panic_without_expect
fn no_message() {}
#[test]
#[should_panic]
#[cfg(not(test))]
fn no_message_cfg_false() {}
#[test]
#[should_panic = "message"]
fn metastr() {}
#[test]
#[should_panic(expected = "message")]
fn metalist() {}
fn main() {}