summaryrefslogtreecommitdiffstats
path: root/tests/ui/limits/issue-75158-64.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/limits/issue-75158-64.rs')
-rw-r--r--tests/ui/limits/issue-75158-64.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/limits/issue-75158-64.rs b/tests/ui/limits/issue-75158-64.rs
new file mode 100644
index 000000000..06c209c07
--- /dev/null
+++ b/tests/ui/limits/issue-75158-64.rs
@@ -0,0 +1,16 @@
+//~ ERROR
+
+// build-fail
+// ignore-32bit
+
+struct S<T> {
+ x: [T; !0],
+}
+
+pub fn f() -> usize {
+ std::mem::size_of::<S<u8>>()
+}
+
+fn main() {
+ let x = f();
+}