24 lines
339 B
Rust
24 lines
339 B
Rust
|
// run-rustfix
|
||
|
// edition:2021
|
||
|
|
||
|
#![warn(clippy::uninlined_format_args)]
|
||
|
|
||
|
fn main() {
|
||
|
let var = 1;
|
||
|
|
||
|
println!("val='{var}'");
|
||
|
|
||
|
if var > 0 {
|
||
|
panic!("p1 {var}");
|
||
|
}
|
||
|
if var > 0 {
|
||
|
panic!("p2 {var}");
|
||
|
}
|
||
|
if var > 0 {
|
||
|
panic!("p3 {var}");
|
||
|
}
|
||
|
if var > 0 {
|
||
|
panic!("p4 {var}");
|
||
|
}
|
||
|
}
|