rust/src/test/ui/for-loop-while/for-loop-panic.rs
2019-07-27 18:56:16 +03:00

5 lines
96 B
Rust

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