]> git.lizzy.rs Git - rust.git/blob - src/test/ui/panic-runtime/unwind-interleaved.rs
move an `assert!` to the right place
[rust.git] / src / test / ui / panic-runtime / unwind-interleaved.rs
1 // run-fail
2 // error-pattern:explicit panic
3 // ignore-emscripten no processes
4
5 fn a() {}
6
7 fn b() {
8     panic!();
9 }
10
11 fn main() {
12     let _x = vec![0];
13     a();
14     let _y = vec![0];
15     b();
16 }