13 lines
159 B
Rust
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();
|
|
}
|