rust/tests/ui/issues/issue-3029.rs
2023-01-11 09:32:08 +00:00

15 lines
273 B
Rust

// run-fail
// error-pattern:so long
// ignore-emscripten no processes
#![allow(unused_allocation)]
#![allow(unreachable_code)]
#![allow(unused_variables)]
fn main() {
let mut x = Vec::new();
let y = vec![3];
panic!("so long");
x.extend(y.into_iter());
}