2025-07-18 22:06:07 +05:00
|
|
|
//! Regression test for https://github.com/rust-lang/rust/issues/10396
|
|
|
|
|
|
2019-11-04 00:00:00 +00:00
|
|
|
//@ check-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2015-01-28 08:34:18 -05:00
|
|
|
#[derive(Debug)]
|
2014-11-03 00:58:00 +01:00
|
|
|
enum Foo<'s> {
|
|
|
|
|
V(&'s str)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn f(arr: &[&Foo]) {
|
2015-01-31 12:20:46 -05:00
|
|
|
for &f in arr {
|
2014-12-20 00:09:35 -08:00
|
|
|
println!("{:?}", f);
|
2014-11-03 00:58:00 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|