Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/layout/tests/closure.rs')
-rw-r--r--crates/hir-ty/src/layout/tests/closure.rs14
1 files changed, 13 insertions, 1 deletions
diff --git a/crates/hir-ty/src/layout/tests/closure.rs b/crates/hir-ty/src/layout/tests/closure.rs
index 811d608880..576e7f3fc6 100644
--- a/crates/hir-ty/src/layout/tests/closure.rs
+++ b/crates/hir-ty/src/layout/tests/closure.rs
@@ -201,7 +201,7 @@ fn match_pattern() {
]
|x: i64| {
match y {
- X(_a, _b, _c) => x,
+ X(_a, _, _c) => x,
}
}
}
@@ -217,6 +217,18 @@ fn match_pattern() {
}
}
}
+ size_and_align_expr! {
+ minicore: copy;
+ stmts: [
+ struct X(i64, i32, (u8, i128));
+ let y: X = X(2, 5, (7, 3));
+ ]
+ |x: i64| {
+ match y {
+ ref _y => x,
+ }
+ }
+ }
}
#[test]