Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/layout/tests.rs')
-rw-r--r--crates/hir-ty/src/layout/tests.rs14
1 files changed, 11 insertions, 3 deletions
diff --git a/crates/hir-ty/src/layout/tests.rs b/crates/hir-ty/src/layout/tests.rs
index afbafb3fea..b9ee38c44f 100644
--- a/crates/hir-ty/src/layout/tests.rs
+++ b/crates/hir-ty/src/layout/tests.rs
@@ -535,13 +535,21 @@ fn non_zero_and_non_null() {
}
check_size_and_align(
r#"
-const END: usize = 10;
-struct Goal(core::pattern_type!(usize is 0..=END));
- "#,
+ const END: usize = 10;
+ struct Goal(core::pattern_type!(usize is 0..=END));
+ "#,
"//- minicore: pat\n",
8,
8,
);
+ check_size_and_align(
+ r#"
+pub struct Goal(core::pattern_type!(i32 is ..0 | 1..));
+ "#,
+ "//- minicore: pat\n",
+ 4,
+ 4,
+ );
}
#[test]