summary refs log tree commit diff
path: root/src/test/run-fail/issue-3029.rs
blob: face808b68ff337f1f12b00a7430fa58236c403e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![allow(unused_allocation)]
#![allow(unreachable_code)]
#![allow(unused_variables)]


// error-pattern:so long
fn main() {
    let mut x = Vec::new();
    let y = vec![3];
    panic!("so long");
    x.extend(y.into_iter());
}