mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
17 lines
250 B
Rust
17 lines
250 B
Rust
//! Regression test for https://github.com/rust-lang/rust/issues/10396
|
|
|
|
//@ check-pass
|
|
#![allow(dead_code)]
|
|
#[derive(Debug)]
|
|
enum Foo<'s> {
|
|
V(&'s str)
|
|
}
|
|
|
|
fn f(arr: &[&Foo]) {
|
|
for &f in arr {
|
|
println!("{:?}", f);
|
|
}
|
|
}
|
|
|
|
fn main() {}
|