summaryrefslogtreecommitdiffstats
path: root/tests/ui/limits/issue-55878.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/limits/issue-55878.rs')
-rw-r--r--tests/ui/limits/issue-55878.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/limits/issue-55878.rs b/tests/ui/limits/issue-55878.rs
new file mode 100644
index 000000000..c1c54646d
--- /dev/null
+++ b/tests/ui/limits/issue-55878.rs
@@ -0,0 +1,8 @@
+// build-fail
+// normalize-stderr-64bit "18446744073709551615" -> "SIZE"
+// normalize-stderr-32bit "4294967295" -> "SIZE"
+
+// error-pattern: are too big for the current architecture
+fn main() {
+ println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>());
+}