rust/src/test/ui/issues/issue-10396.rs
2018-12-25 21:08:33 -07:00

15 lines
179 B
Rust

// compile-pass
#![allow(dead_code)]
#[derive(Debug)]
enum Foo<'s> {
V(&'s str)
}
fn f(arr: &[&Foo]) {
for &f in arr {
println!("{:?}", f);
}
}
fn main() {}