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.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/hir-ty/src/layout/tests.rs b/crates/hir-ty/src/layout/tests.rs
index 1502ab14cc..e1038c0aff 100644
--- a/crates/hir-ty/src/layout/tests.rs
+++ b/crates/hir-ty/src/layout/tests.rs
@@ -354,6 +354,14 @@ fn niche_optimization() {
}
#[test]
+fn const_eval() {
+ size_and_align! {
+ const X: usize = 5;
+ struct Goal([i32; X]);
+ }
+}
+
+#[test]
fn enums_with_discriminants() {
size_and_align! {
enum Goal {