]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/limits/issue-55878.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / limits / issue-55878.rs
diff --git a/src/test/ui/limits/issue-55878.rs b/src/test/ui/limits/issue-55878.rs
new file mode 100644 (file)
index 0000000..c1c5464
--- /dev/null
@@ -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]>());
+}