]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/issue-3029.rs
Promote `Ref`s to constants instead of static
[rust.git] / src / test / run-fail / issue-3029.rs
1 #![allow(unused_allocation)]
2 #![allow(unreachable_code)]
3 #![allow(unused_variables)]
4
5
6 // error-pattern:so long
7 fn main() {
8     let mut x = Vec::new();
9     let y = vec![3];
10     panic!("so long");
11     x.extend(y.into_iter());
12 }