summaryrefslogtreecommitdiffstats
path: root/tests/ui/panics/explicit-panic-msg.rs
blob: 9d80357873488352e8078db797eae2f0c656e43c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![allow(unused_assignments)]
#![allow(unused_variables)]
#![allow(non_fmt_panics)]

// run-fail
// error-pattern:wooooo
// ignore-emscripten no processes

fn main() {
    let mut a = 1;
    if 1 == 1 {
        a = 2;
    }
    panic!(format!("woooo{}", "o"));
}