Files
rust/tests/ui/panics/explicit-panic-msg.rs
Christian Poveda 7ae2823bc6 Gate 2018 UI tests
2025-11-27 14:13:58 -05:00

17 lines
275 B
Rust

//@ edition:2015..2021
#![allow(unused_assignments)]
#![allow(unused_variables)]
#![allow(non_fmt_panics)]
//@ run-fail
//@ error-pattern:wooooo
//@ needs-subprocess
fn main() {
let mut a = 1;
if 1 == 1 {
a = 2;
}
panic!(format!("woooo{}", "o"));
}