diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-07-18 22:00:30 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-07-25 20:38:54 +0500 |
| commit | 9f38ca97eab53ba2f431a48bec2343ef52335714 (patch) | |
| tree | 44528420417b45dff1196ab9d587bc3bb4f6cf70 /tests/ui/array-slice-vec/array-pattern-matching.rs | |
| parent | a955f1cd09a027363729ceed919952d09f76f28e (diff) | |
| download | rust-9f38ca97eab53ba2f431a48bec2343ef52335714.tar.gz rust-9f38ca97eab53ba2f431a48bec2343ef52335714.zip | |
move 28 tests
Diffstat (limited to 'tests/ui/array-slice-vec/array-pattern-matching.rs')
| -rw-r--r-- | tests/ui/array-slice-vec/array-pattern-matching.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/array-slice-vec/array-pattern-matching.rs b/tests/ui/array-slice-vec/array-pattern-matching.rs new file mode 100644 index 00000000000..082216d557c --- /dev/null +++ b/tests/ui/array-slice-vec/array-pattern-matching.rs @@ -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() {} |
