mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
15 lines
273 B
Rust
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());
|
|
}
|