mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
move 28 tests
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
//@ 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() {}
|
||||
Reference in New Issue
Block a user