rust/tests/ui/panic.rs
2019-10-18 07:37:58 +02:00

13 lines
159 B
Rust

#![warn(clippy::panic)]
#![allow(clippy::assertions_on_constants)]
fn panic() {
let a = 2;
panic!();
let b = a + 2;
}
fn main() {
panic();
}