rust/tests/ui/for-loop-while/for-loop-panic.rs

5 lines
97 B
Rust

//@ run-pass
pub fn main() { let x: Vec<isize> = Vec::new(); for _ in &x { panic!("moop"); } }